Forums

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

Get list of watched issues via API

Joe Mallon
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 13, 2019

I'm trying to get a list of watched issues for a user via a JQL search in an API call. The URL with call is:

https://ala-jira-prod.wrs.com/rest/api/latest/search?fields=*none&jql=watcher+=+currentUser()&maxResults=100&startAt=0

The user submitting the API call has over 7000 watched issues, but the API call returns only 1 issue, which is being watched by the user.

When I run the same URL in the browser, it returns all 7000+.

Why does this work in a browser, but not via script?

1 answer

1 accepted

1 vote
Answer accepted
Alexey Matveev
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 13, 2019

Hello,

The search endpoint should return the same issues as in Jira. Make sure that you connect under the same user in Jira and while executing the search rest endpoint

Joe Mallon
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 14, 2019

100% the problem. I was connecting as a different user. Thanks for the advice.

Suggest an answer

Log in or Sign up to answer