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

This widget could not be displayed.

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.

This widget could not be displayed.

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

This widget could not be displayed.

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.

This widget could not be displayed.

Can you link to the rest api that you are using and maybe I'll be able to just look it up for you?

This widget could not be displayed.

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

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);




I added into my JIRA query &startAt=0&maxResults=100 and it works!

JIRA have a limitation to get return result only 100 rows to improve performance.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

285 views 5 0
Join discussion

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