Automatic Jira cloud backup using an Unscopes API token and basic authentication works fine with the following URL: {{baseUrl}}/rest/backup/1/export/runbackup.
But with a scoped API token and basic authentication, it does not work with the new URL structure for the scoped API token - https://api.atlassian.com/ex/jira/{cloudid}/{api}. And doesn’t know how to construct the URL to initiate backup with the new URL structure because there is no documented endpoint for that.
@Thushan Nirasha Welcome to Atlassian Community!
The Jira backup API endpoint (/rest/backup/1/export/runbackup
) is not part of Atlassian’s officially supported APIs, and currently, none of the classic scopes grant permission to perform this operation. For now, I recommend continuing to use this API with an encrypted unscoped token.
Atlassian has mentioned plans to introduce a new automatic backup feature, but the feature is currently in EAP. You can read more about it here.
Hey @Akash Singh
Thanks for answering.
Unfortunately, I cannot use the unscoped api token because that has all the admin privileges, and also this will be deprecated very soon. I'm looking for a way to do this using a scoped token with the minimum access permission.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Thushan Nirasha
You need to reconstruct the new URL using {cloudid} instead of your instances name.
An easy way to find the cloud ID is by going to admin.atlassian.com and picking your instance. The ID will then be in the URL.
I hope this helps
Thanks
Aaron.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Aaron Williams
Thanks for answering.
I obtain the cloud ID by visiting admin.atlassian.com. Then I construct the URL like this -
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.