Is there a way to edit the maxResults for a JIRA filter?

I am using the JIRA filter's search URL and using the UrlFetchApp in Google Apps Scripts to retreive the JSON. However, my filter has more than 50 items and I see the maxResults always set to 50. I tried passing in maxResults as an option to the fetch but I still end up with only 50. Can I do something to the filter to get more than 50 items?

5 answers

0 vote

I think that JIRA has an upper limit of 50 inbuilt statically into it. I think that you will just have to paginate the API yourself to get all of the results.

0 vote

If pagination is not allowed by the resource then you should probably raise a bug. :(

I'm not using an API, I'm just using google scripts' UrlFetchApp to retrieve from the search URL then I am parsing the JSON. I was wondering if maybe I could edit the maxResults in the JIRA filter itself, or if there is a parameter I can pass in to change the maxResults.

0 vote

Can you link to the rest api that you are using and maybe I'll be able to just look it up for you? https://docs.atlassian.com/jira/REST/latest/

I found a simple fix. At the end of the search URL I was using I just added "&maxResults=1000" and it changed it.

Vinh Bao I'm New Here Apr 17, 2018

Hi Ben Wozniak,

That's great to see your faced issue similar to mine. Could you please share my how to add "&maxResults=1000" into you search URL?

 

I tried it and it still showing 50 rows returned.

My code below, can you please help me if possible to modify below

var jql = "?jql=issuetype in (subTaskIssueTypes(), Enhancement, Epic, Feature, 'Product Backlog Item', Story, Task, Bug) AND Labels = 2018 ORDER BY Rank ASC";
var resultJQL ="&maxResults=1000";
var httpResponse = UrlFetchApp.fetch(baseURL + jql + resultJQL, fetchArgs);

 

Thanks,

Vinh

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

642 views 6 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you