Populate list with all Jira issues (bugs, story , ...) with python Edited

I am trying the following:

 

from jira import JIRA

jira = JIRA(basic_auth=('user_name', 'password'), options={'server':'https://myJira.atlassian.net'})

issue = jira.issue('KEY-##')
print(issue.fields.project.key)
print(issue.fields.issuetype.name)
print(issue.fields.reporter.displayName)
print(issue.fields.summary)
print(issue.fields.comment.comments)
print(issue.fields.labels)

 

What I am trying to do, is populate a list of all issues so that I can pass them into the 'issue = jira.issue('KEY-##')'.

The idea is to write a for loop that would pass the list values into 'jira.issue(list(item))' and print the required fields.

Is there an easy way to do this?

1 answer

0 votes
Gonchik Tsymzhitov Community Champion Sep 08, 2018

Hi! 

 

Let's use search method, where you will get list from jql query.

Cheers,

Gonchik Tsymzhitov

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,233 views 5 10
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