Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Walter Ullon
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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 Champion
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
TAGS
AUG Leaders

Atlassian Community Events