Export issues to csv using Python library

Monica Muñoz November 15, 2018

Hi,

I am using a python library to query jira issues. How can I export the issues to csv? 

from atlassian import Jira
jira = Jira( url='https://myserver.atlassian.net',
username
='XXXXX',
password='XXXXX')
JQL = 'project = DEMO and created >= startOfDay()'
data = jira.jql(JQL)

 Thanks

1 answer

1 vote
Edwin Kyalangalilwa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 15, 2018

Hi @Monica Muñoz,

You can utilize a Python CSV writer here.

For example iterating through issue returned in data 

for issue in data:

then using csv.writer to write the rows.

python-csv

Note: Exporting to CSV is also possible in the UI when searching for issues.

Screen Shot 2018-11-15 at 3.53.23 PM.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events