Add Comment

Adds a comment to the issue.

Role

Administrator 
Normal User 
Reporter 
Guest Reporter 

Method

POST 

URL

/api/v2/issues/:issueIdOrKey/comments 

URL parameters

Parameter Name Type Description
issueIdOrKey String Issue ID or Issue Key

Form parameters

Content-Type:application/x-www-form-urlencoded 
Parameter Name Type Description
content (Required) String Content
notifiedUserId[] Number Notified User ID
attachmentId[] Number Attachment file ID(Post Attachment File returns)

Response example

Status Line / Response Header

HTTP/1.1 201 CREATED 
Content-Type:application/json;charset=utf-8 
Location:https://xx.backlogtool.com/view/BLG-5742#comment-6586 

Response Body

{ 
    "id": 6586, 
    "content": "test", 
    "changeLog": null, 
    "createdUser": { 
        "id": 1, 
        "userId": "admin", 
        "name": "admin", 
        "roleType": 1, 
        "lang": "ja", 
        "mailAddress": "eguchi@nulab.example" 
    }, 
    "created": "2013-08-05T06:15:06Z", 
    "updated": "2013-08-05T06:15:06Z", 
    "stars": [], 
    "notifications": [] 
}