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?
Below KB article may help you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.