Extract activity tab details of a particular issue to a csv file using jira rest api and node js


I am working on extracting the details of issues during a particular period into a csv file. I am using jira rest api and node js.

However I need help in extracting all the activity tab data into the csv file.

My code for extracting the data is as follows:

var searchString="project='okrs' and ((createdDate<='2017/11/1' and createdDate>='2017/3/1') or (updatedDate <='2017/11/1' and updatedDate >='2017/3/1')) "
.then(function(issue) {
var fields = ['ISSUE_Number', 'TITLE', 'STATUS'];
var myISSUE=[];
for(var i=0;i<issue.total;i++){

"TITLE": issue.issues[i].fields.status.name,
"STATUS": issue.issues[i].fields.summary,

var csv = json2csv({ data: myISSUE});
fs.writeFile('file.csv', csv, function(err) {
if (err) throw err;
console.log('file saved');
}) ;
.catch(function(err) {

 I am able to retrieve the json object however i am not understanding how i should retrieve the activity tab related data into csv.

Please help...

0 answers

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published yesterday in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

96 views 0 8
Read article

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