You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Hi,
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')) "
jira.searchJira(searchString)
.then(function(issue) {
var fields = ['ISSUE_Number', 'TITLE', 'STATUS'];
var myISSUE=[];
for(var i=0;i<issue.total;i++){
myISSUE.push(
{
"ISSUE_Number":issue.issues[i].key,
"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) {
console.error(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...
Hi Nidhi,
Please go through the below link:-
https://developer.atlassian.com/server/jira/platform/issue-tab-panel/
This may help you.
Thanks,
Dileep kumar
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.