Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Excluding Developer comments from Jira Issues Export

Mustafa Kutlu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 9, 2019

Hi everybody,

We are migrating issues from our Jira to another. Everything is fine except that we want to exclude developer comments when exporting or importing. When you export to CSV or any other extension there is no difference between a regular comment or a developer comment. Is there any way we can exclude them from our issues?

Thanks,

Kind regards,
Mustafa

1 answer

1 accepted

0 votes
Answer accepted
Mustafa Kutlu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 15, 2019

Closing this ticket; for those who wonder: you can find developer comments through the API.

My php script:

<?php
$username='USERNAME@domain.com';
$password='PASSWORD';
$URL='https://YOURAPP.atlassian.net/rest/api/3/issue/TICKETCODE/comment';

$headers = ['Accept: application/json'];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$URL);
curl_setopt($ch, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result=curl_exec ($ch);
$status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);   //get status code
curl_close ($ch);
$obj = json_decode($result);
var_dump($obj); 

?
>

Suggest an answer

Log in or Sign up to answer