Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

 

1 answer

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

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.

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

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you