JIRA truncation of issues

Krysten Szatan June 24, 2016

Using a favourite query already set up, I use the JIRA API to get all the issues that result from the query. I start from 1, set my max results to 10, and it says there are a total of 3 issues. However, only 2 issues are actually returned.When I use the filter on the JIRA website, 3 issues show up.

I have included a screenshot of what the json looks like. Notice the "total : 3" and the "issues [2]"

 

Has anyone else experienced this?

 

250

1 answer

1 accepted

0 votes
Answer accepted
RVal
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 24, 2016

can you show URL you are using ? In your JSON result 'startAt: 1' looks suspicious. Looks like it does not start from issue 0 in your set but has offset of 1.

Krysten Szatan June 24, 2016

Ohh thanks! Turns out it was just that. I've been using VBA (base 1 instead 0) so I've gotten used to things starting from 1. smile

Suggest an answer

Log in or Sign up to answer