I am trying to query Assets. I have a legitimate API key created in the Atlassian admin centre. However, I am getting forbidden when querying it.
How do I create a valid key for querying Assets? There doesn't seem to be anywhere within Assets to do it, and the creation of the key in Atlassian doesn't seem to have the capacity to assign permissions.
The Jira specific API doesn't seem to work either.
I've been querying the documentation on this but can't seem to find anything.
I am a global admin on Jira and Atlassian with permission to update Assets.
Hi @Joshua Bennett - Assets are handled by the same API key as the rest of Jira. However, there are a couple things that you could look at:
https://YOURINSTANCE.atlassian.net/jira/servicedesk/assets/configure/object-schema/SCHEMAID
Hi, thanks for your response. You're saying that Assets are used querying the Jira API key - isn't that distinct from the Atlassian API?
The Atlassian API I genereally use for stuff like user management etc, and I create the keys in admin.atlassian.com
The Jira API I use to query ticket etc and I create in by going to the below link from my user settings.
https://id.atlassian.com/manage-profile/security/api-tokens
When I use the api I use the query Jira (tickets etc) I get unauthorized.
Using the Atlassian API Iget 'forbidden'.
Am I getting confused here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
While the endpoint for Jira Assets is different, your authentication for each should be able to use the same token. The link I provided above is the best I can recommend for helping troubleshoot the issues. It includes a link to this page that provides more detail around authentication:
https://developer.atlassian.com/cloud/jira/service-desk/basic-auth-for-rest-apis/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.