Add Comment Notification

Adds notifications to the comment. Only the user who added the comment can add notifications.

Role

Administrator 
Normal User 
Reporter 
Guest Reporter 

Method

POST 

URL

/api/v2/issues/:issueIdOrKey/comments/:commentId/notifications 

URL parameters

Parameter Name Type Description
issueIdOrKey String Issue ID or Issue Key
commentId Number Comment ID

Form parameters

Content-Type:application/x-www-form-urlencoded 
notifiedUserId[] Number UserID

Response example

Status Line / Response Header

HTTP/1.1 200 OK 
Content-Type:application/json;charset=utf-8 

Response Body

{ 
    "id": 6586, 
    "content": "This is a comment", 
    "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": [ 
        { 
            "id":22, 
            "alreadyRead":false, 
            "reason":2, 
            "user":{ 
                "id": 1, 
                "userId": "admin", 
                "name": "admin", 
                "roleType": 1, 
                "lang": "ja", 
                "mailAddress": "eguchi@nulab.example" 
            }, 
        "resourceAlreadyRead":false 
        }, 
        ... 
    ] 
}