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

Walter Ullon October 2, 2017

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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 8, 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