CLI(JIRA) getIssueList does not output Comments


I tried to export all issues with the query below but I did not get any comments of the issues. Can you please help?

atlassian.bat jira --action getIssueList --file "C:\outputCLI.csv" --filter=MyFilter" --outputFormat "1" --dateFormat "yyyy-MM-dd hh:mm:ss" --encoding "UTF-8"



3 answers

1 accepted

This widget could not be displayed.

"getIssueList" does not return comments, only fields. Which fields are returned can be controlled by the "outputFormat":

1 - default, 2 or 4 - custom fields, 3 or 4 - security level, 5 - 4 plus time values, 101 - issue keys only, 998 - all except custom, 999 - all

You can get a list of comments by using "getComments". Example:


atlassian.bat jira --action runFromIssueList --filter="MyFilter" --common "--action getComments --issue @issue@"





This widget could not be displayed.

I found an issue that seems that it is possible to get comments with getIssueList.


If I use the solution with runFromIssueList and getComments, how can I import a list with all tickets (from csv getIssueList) and combine them with the list of all comments?

This widget could not be displayed.

getIssueList only supports retrieving the latest comment - see JCLI-480. Wolfgang's answer is correct for retrieving lists of comments.

If you need to combine lists, then you will need to script that. The general case of having many comments for an issue makes it not practical/usable to include in a single csv file.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

83 views 0 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you