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

How to Unwatch issues using REST API in Bulk ?


By mistake, I didn't turn off auto watch feature in Jira 5 and got added as a watcher in a ton of tickets that I didn't want to get notifications. I got wise a bit late :), now I have to unwatch 500+ tickets. I just dread clicking through 500+ tickets to unwatch them one by one. I was thinking I will write and run a curl script to do it in bulk.

I tried the below REST API solution, but have run into the dreaded "404" error.

curl -D- -v -u scott:xxx -X DELETE ""

My ID has the proper access to unwatch it.

I have project administrator access, so it doesn't seem like a permissions issue.

I am getting the below error. Any ideas about how to troubleshoot this further.

Thanks in advance. I am open to other suggestions.

CURL Output

* Connected to (XX.XX.XX.XXX) port 80 (#0)

* Server auth using Basic with user 'scott'

> DELETE /rest/api/2/issue/GORAL-131/watchers?scott HTTP/1.1

> Authorization: Basic c3JhbmdhOmJhamppMDg=

> User-Agent: curl/7.19.6 (sparc-sun-solaris2.10) libcurl/7.19.6 OpenSSL/0.9.8g zlib/1.2.3 libidn/1.14 libssh2/1.2

> Host:

> Accept: */*


< HTTP/1.1 404 Not Found

HTTP/1.1 404 Not Found

1 answer

Not sure about your error, but you could try removeWatchers

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

We want to hear from you! How do you use Slack and Atlassian together?

Hi Everyone! My name is Mina and I am on Atlassian’s Ecosystems Marketing team. Our team is focused on our technology partnerships and marketplace apps. One of Atlassian’s partners is Slack, who ...

107 views 1 6
Join discussion

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