hello community ,i am trying to add watcher to issue through rest api but getting 400 error .

Prem Marcel July 8, 2021

please help me with syntax for adding watcher. what is the exact syntax for adding watcher?

 

1 answer

0 votes
Markus
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.
July 8, 2021

Hi Prem,

To assist we will need to see your call to the endpoint, hard to check it without this.

The exact call to make is published in Atlassian's REST API documents.

To sanity check this login to the system as the user who the call's API token come from and attempt to do the action of assigning the issue manually. If you can't do it through the UI it's a permission issue and you won't be able to through Restful

Prem Marcel July 8, 2021

hi markus,

i am succesfully able to get watcher info with rest api. i tried to add watcher through ui it succesfully add watcher. but while post watcher not getting what to put in body.

Prem Marcel July 8, 2021

tried with

1.

{     "name":"Prem Marcel"
}  

2.

{      "watchers": [        {            "displayName": "Prem Marcel"        }    ]}Screenshot (59).png       ,

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events