Forums

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

Limit API Response fields and subfields

William Fargues March 9, 2020

Hello !

When I make this request : 

https://example.com/jira1/rest/api/latest/issue/{issue name}?expand=changelog&fields=changelog

I have more than 350 fields and subfields for a single issue.

In the "changelog" object there is a "histories" list of objects and in that "histories" list, for each object there is a "items" field.

1st question : Is that possible to display in the response only the "items" fields ?

2nd question : Is that possible to display only the "items" that have a "field" : "timeestimate" ?

Thank's !

1 answer

1 accepted

0 votes
Answer accepted
Warren
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.
March 9, 2020

Hi @William Fargues 

I think the short answer is No and No.

The histories object is a sub-item of changelog and only changelog is exposed via the API. It is relatively simple and quick to iterate through all changelogs and all histories and extract the info you're after - in your case checking for the timeestimate

William Fargues March 9, 2020

Ok, I just wanted to be sure.


Thank's !

Suggest an answer

Log in or Sign up to answer