Forums

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

Timespent appears in advanced search box, but doesn't appear in the JSON result!

Vali Tawosi June 2, 2020

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!   

 

1 answer

1 accepted

0 votes
Answer accepted
Alexander Eck [Tempo]
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.
June 4, 2020

Hi,

have you tried:

...?expand=timespent

Best regards

Vali Tawosi June 4, 2020

Hi Alexander,

Thank you for your response, I tried, but it didn't work either!

Suggest an answer

Log in or Sign up to answer