You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
We are trying to locate User Assets through the JIRA REST API, and we are not finding the Assets that we want. Currently, we are using the following API url, but we are not getting User Assets. We are getting servers and VM’s, but not user assets. The url we thought we wanted to use was https://magmutual.atlassian.net/rest/assetapi/asset.
The asset list we are trying to get to, can be found in the JIRA UI by first navigating here:
Then by choosing the following:
This then leads us to a page where we see the following options, with the Computer list being the default.
Our goal is to be able to access the list of assets in the Computer category. However, we are not able to locate how to do this after hours spent trying different URLs and a lot of time searching documentation and forums.
Can someone help us access this list of assets through the REST API?
Thank you in advance.
You are using the wrong API, the one you are using is for external assets and not the one in JSM. The API you are looking for can be found here, Assets. That API is using the workspace ID to know which instance to go to, so your URL would look something like this:
Thanks for the info, it was helpful. I'm just not familiar enough with all this to get it to work. I was able to use this endpoint and get the WorkspaceID: https://<JSM Premium Site Name>.atlassian.net/rest/servicedeskapi/assets/workspace
Now that I have the WorkspaceID, I want to get all the assets, I think, but I'm struggling to find the right endpoint. Can you point me to a page where I can find that info?