The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to add watchers in Bulk with one API call in Jira 7.13.5 or above?

Deleted user
November 4, 2019

We use automation to open some types of JIRA tickets, and this is getting very slow as the list of watchers we need to add grows. The ability to add an arbitrary list of watchers with one API call would eliminate this problem.

Is it possible in Jira version 7.13.5 or above?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 5, 2019

Hello @[deleted]

Thank you for reaching out.

Unfortunately, there's a bug in the syntax of JIRA REST API that blocks the ability to add multiple watchers with a single REST API call:

REST API add watcher (POST) request is not a valid JSON syntax 

Feel free to vote and watch the bug to receive notifications about the fixing progress of the bug.

For now, you can try the following options:

1 - Create a script with a single rest API call for each user that should be added to the issues, using the REST API call below:

POST /rest/api/2/issue/{issueIdOrKey}/watchers

2 - Use the Watcher custom field free app to bulk add watchers to your issues using the JIRA bulk operation functionality.

Let me know if you still have any questions.

TAGS
AUG Leaders

Atlassian Community Events