To give context, I need to access a client's Jira Assets REST API for analytics on their CMDB data, and this must be done through platforms like Postman, not through scripting. I do not have any accounts set up on our side, so we need to guide them accordingly and give them all the steps they need to provision us with only read access.
I have identified the API endpoints that I would require to give be the required info, namely:
1. POST /object/aql : wherein I will ask the client to share the relevant Object Schema IDs that contain the assets data they want to share with us, and filter it in the query parameter. Using the object ids from this, i will iterate through the below API.
2. GET /object/{id}/attributes : To get all the object and relevant attributes
In order access these APIs, I have been seeing very confusing documents where some say authentication is through Basic Auth, and some saying OAuth.
For example,
When we click on the above link, the workflow shows :
workspaceIDworkspaceID to make your REST API calls.But the individual APIs say it requires certain scopes to be provisioned
Should i follow this documentation and request them to make a sure complete the following: https://developer.atlassian.com/cloud/jira/software/oauth-2-3lo-apps/
If I do, how will i be able to access the AQL API?
Would really appreciate any help, Thanks!
Hi @Ann
Welcome to the community.
You need to use this, https://developer.atlassian.com/cloud/jira/software/basic-auth-for-rest-apis/
To get the CloudID; https://support.atlassian.com/jira/kb/retrieve-my-atlassian-sites-cloud-id/
To get a WorkspaceID; https://developer.atlassian.com/cloud/assets/assets-rest-api-guide/workflow/#step-2--discover-your-workspaceid
You also need an account on their Jira system, this account needs to be granted access to the Assets schema or schemas, depending on the requirements you have to fulfil.
Also a service account could be used, see; https://support.atlassian.com/user-management/docs/manage-your-service-accounts/ (stil permissions would need to be granted correctly)
See Asset roles; https://support.atlassian.com/assets/docs/what-are-roles/ and what role has what permission
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.