The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
i am using Jira-python API to extract description and summary from jiras in my project. My project has around 1700 issues. but i am only able to extract a max of 500 issues. I am extracting all issues in a data frame using pandas. i followed this approach given in this link . But unable to fix it. kindly help.
from jira import JIRA
jira = JIRA('https://jira.spring.io')
block_size = 1000
block_num = 0
allissues = []
while True:
start_idx = block_num*block_size
issues = jira.search_issues('project=XD', start_idx, block_size)
if len(issues) == 0:
# Retrieve issues until there are no more to come
break
block_num += 1
for issue in issues:
#log.info('%s: %s' % (issue.key, issue.fields.summary))
allissues.append(issue)
Hello @xoxo ,
What is the value of your server's jira.search.views.default.max (found in System > Advance Settings)? By any chance is it 250?
I am not that familiar with Jira-python API but I believe it is calling Jira server's Search REST API underneath the hood, hence, jira.search.views.default.max will be used as the limit.
If your jira.search.views.default.max is not 1000, try changing your block_size to your default max value, then I think it should be ok.
Cheers,
Ian
Hi,
it should be possible to use the maxResults parameter in your call "jira.search_issues", for example "maxResults=1000"
If you need to get more than 1000 items, just try "maxResults=False" that allows retreiving all possible items without limitation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.