I am interested to fetch value of timespent field for some issues using REST API.
When I use the advanced search box, I can filter the issues with timespent field, so I assume that the resulting issues have this field.
My JQL (Project = "ProjectX" and timespent > 0) returns some issues.
However, when I use REST API to fetch the data for anyone of the issues that appeared in the result of my JQL, there is no field by the name of "timespent" in the JSON returned. I even tried "?fields=timespent" at the end of my REST URL, again the response JSON doesn't include this filed (i.e. it returned "fields":{}).
I am really confused here! How is it possible that the field appears in the basic search in browse mode and I can even use it to filter issues, but it does not appear in the JSON result?
I appreciate any help here!
Hi,
have you tried:
...?expand=timespent
Best regards
Hi Alexander,
Thank you for your response, I tried, but it didn't work either!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.