Hello,
So I have the following code below, but: I don't know how to get the comments from issues. Also, I'm confused about how to iterate between all the projects to grab all the issues. Right now, it's set up so that it can only get the information from a single project.
from jira import JIRA
import csv
user = "accountemail@address.com"
apikey = "apikeygoeshere"
server = "https://jirajirajira.atlassian.net"
options = { "server": server}
jira = JIRA(options, basic_auth=(user,apikey))
size = 100
count = 0
while True: start= count * size
issues = jira.search_issues("project=PROJECTKEYGOESHERE", start,size)
if len(issues) == 0:
break
count += 1
for issue in issues:
print("ticket-no=", issue)
print("IssueType=", issue.fields.issuetype.name)
print("Status", issue.fields.status.name)
print("Summary=", issue.fields.summary)
print ("Comment:", issue.fields.comment.comments[0].author.name)