How to download jira backup file via restapi

Enes_Sijaric January 30, 2020

Im using this code to access project in my JIRA workspace. And it works.

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://XXX.atlassian.net/rest/api/2/project/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_USERPWD, 'xxx@email.com' . ':' . 'token');

$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
print_r($result);
curl_close($ch);

But I want to access to this page via API:

https://xxx.atlassian.net/secure/admin/CloudExport.jspa 

create a backup file and download it (check screenshoot)
http://prntscr.com/qva983

Is there any way I can do it with JIRA API?

1 answer

1 accepted

0 votes
Answer accepted
Veera
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 31, 2020

Suggest an answer

Log in or Sign up to answer