Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,979
Community Members
 
Community Events
168
Community Groups

Rest API limiting changelog.history results to 100 (even if maxResults is larger)

Hi all,

I'm trying to get all history entries for a changelog by means of the Rest API (both through the browser or JIRA's Python library) from JIRA Cloud. Whenever I run a request of the type:

/rest/api/2/issue/{issueKey}?expand=changelog&fields=changelog&maxResults={maxResults}

I get at most 100 results, regardless of the number I pass as maxResults. Through Python I can't even pass maxResults to this query.

Is there anyway to work around this issue? Anyway I can get all history elements from a changelog?

3 answers

1 accepted

0 votes
Answer accepted
Daniel Eads Atlassian Team Aug 26, 2020

Hello Juan,

According to information in a previous issue related to the changelog parameter, calling an expand on the changelog using a query string is limited to to the most recent 100 changes.

You'll need to use the full changelog endpoint to retrieve all the results:

/rest/api/3/issue/{issueIdOrKey}/changelog

The default sort order for this endpoint is oldest first. The maxResults parameter defaults to 100 for this endpoint but should be honored on this endpoint. You can also use the startAt parameter to page through the results.

Cheers,
Daniel

Hi, @Daniel Eads 

it's not being honored on my dev instance, though.

Thanks @Daniel Eads and @Prince Nyeche
I'll follow your guideline.

0 votes

Hi @Juan Pedro Silva 

Using the startAt parameter should get you more results from the changelog endpoint just as @Daniel Eads  mentioned. Therefore the behaviour is expected as the default is 100 unless you specify to loop through the records.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS

Atlassian Community Events