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: 

Get issue watchers returns watchCount but an empty watchers array

Aron Fiechter
August 26, 2020

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.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Rene
September 1, 2021

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

Aron Fiechter
September 1, 2021

Hi Rene,

Sadly no, I ended up dropping Jira support in my project, and ultimately also stopped working on the project.

 

Best,

Aron