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?
Hi!
Let's use search method, where you will get list from jql query.
Cheers,
Gonchik Tsymzhitov
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.