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
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 secondscurl_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 codecurl_close ($ch);$obj = json_decode($result);var_dump($obj); ?>
It looks like you're new here. Sign in or register to get started.