To get the watchers of an issue, the Jira Server REST API documentation says to use the `/issue/{issueKeyOrID}/watchers` endpoint.
When trying this endpoint on multiple Jira instances, however, I noticed that the request always returned an empty array for the watchers, even if the watchCount was not 0; for example:
{
"self": "https://issues.apache.org/jira/rest/api/2/issue/CODEC-55/watchers",
"isWatching": false,
"watchCount": 6,
"watchers": []
}
Some examples of requests returning no watchers in the array:
sonatype/MVNCENTRAL-5953 (watchCount 3)
apache/CODEC-55 (watchCount 6)
redhat/WFLY-4023 (watchCount 4)
I have found no alternative way to get the watchers of an issue using the REST API.
Hey Aron,
we have the same problem as you. Surprisingly this problem only occurs in our newly created Agile Project but not in our old longterm standard project.
Did you find any solution?
With regards,
Rene
Hi Rene,
Sadly no, I ended up dropping Jira support in my project, and ultimately also stopped working on the project.
Best,
Aron
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.