Hello team,
I'm pulling JIRA incidents into power BI via rest API that connects to created filter in Atlassian/Jira.
It worked nice with REST API v2 endpoint, but with the new one V3 I have issues and was hoping that someone can help me to solve them.
First problem I encountered was that API call was not working when simply replaced 2 to 3, I solved this by using this combination: rest/api/3/search/jql?jql instead of rest/api/3/search/jql.
The 2nd issue I got was that output returned was not identical. but I have solved that as well.
Last one that I have and still not being able to solve is getting all results from the filter.
I have created logic in my query that collects all results from the first page (100) checks the next page token and moves to the next one until there is no more. At least that is how I wanted to work, but what I actually get is a loop that returns the same 100 results from the first page. I have read that there is a bug reported for this but would appreciate if someone could provide a workaround.
Thanks.
The pagination behavior in v3 changed
Try using the startAt parameter instead of relying on nextPage, for example:
/rest/api/3/search?jql=filter=12345&startAt=100
Loop until isLast is true.
That usually avoids the duplicate-page issue with Power BI connectors.
Hello @Dejan Stajic
I have read that there is a bug reported for this
Can you provide a link to where you read that or where that bug has been reported. There was a bug related to the nextPage token length when the endpoint first came out, but that was fixed ages ago.
If I had to guess, it's more likely that:
Just use your API test tool to validate the functionality of the endpoint and your requests, thereby isolating if the fault is in your code or not.
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.