Forums

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

Invalid field value "watchCount"

Vladimir
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 6, 2018

I make an API request for a project

https://jira.localdomain.local/rest/api/2/search?jql=project%20%3D%20%22PROJECT%22%20order%20by%20id&fields=*all

 In one of the issues in the fields, I have value

1:
fields:
watches:
self: "https://jira.localdomain.local/rest/api/2/issue/TRACK-2/watchers"
watchCount: 0
isWatching: false
created: "2018-03-26T18:58:48.000+0300"

I follow the link "https://jira.localdomain.local/rest/api/2/issue/TRACK-2/watchers" and get the value

self:   "https://jira.localdomain.local/rest/api/2/issue/TRACK-2/watchers"
isWatching:    false
watchCount:    1

watchers:
0:
self: "https://jira.localdomain.local/rest/api/2/user?username=i.ivanov"
name: "i.ivanov"
...

If I understand correctly and follow the example of other issues then on an API request I should receive field - "watchCount: 1"

How to fix this error?

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events