REST Add watcher 400 Bad Request

Nelson D April 11, 2016

Have been trying to add the watch as per the API here - https://docs.atlassian.com/jira/REST/latest/#d2e2467 and tried setting the watch with different JSON combinations:

"john"

'"john"'

"""john"""

but none of these are working with v6.4.5 . These all fail with HTTP Status 400 - Bad Request.

Any suggestions ?

1 answer

1 vote
Aleks Yenin (Polontech)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 11, 2016

Hi,

Have you done like this:

POST /rest/api/2/issue/issueKey/watchers -u admin:admin -d '"john"' -h "Content-Type: application/json"

 

Buvanesh Kumar Sivasubramaniyam July 12, 2019

Working great, thanks.

Suggest an answer

Log in or Sign up to answer