How to retrieve all Jira Asset IDs in a single request?

I’m trying to fetch all Asset IDs from Jira in a single request to perform a FROM/TO mapping for an application, but I’m not able to retrieve them.
Could someone help me with this?
I need the ID shown in print1, and ideally I’d like to get all existing ones at once.

I also posted this question here, but I suspect it may not be the appropriate place:

Thanks in advance!

Hello Pedro

Firstly, the Atlassian product that contains Assets is not Jira, but Jira Service Management.

Next, if you Google “Using the Jira Service Management Cloud REST API, can I get all Asset IDs with a single request?” you will get the answer to your question:

No, the Jira Service Management Cloud REST API doesn’t offer a single request to retrieve all Asset IDs. You’ll need to use pagination and potentially iterate through multiple requests to get all asset IDs

1 Like

ok, i understand that but in every API i try to get this Assets i dont have success, i get


Unauthorized even with admin permissions on the project.


When i inspect the page of Assets the Workspace ID is diferent than the one i retrieve in the API:
https://api.atlassian.com/oauth/token/accessible-resources

You can tell how i get the permission to retrieve the assets of the right Workspace?

Hello @HaisPedro

Not being able to access an API endpoint due to permissions or not knowing how to retrieve a workspace ID are totally different topics to your original question. Also, please don’t post picture of Python code or errors, as it’s not of much use.

Please read the How to ask a good question thread, state the problem fully and completely, and maybe someone will have the spare time to help debug your code.

I’d also recommend using an AI tool to help in the first instance, as there are already countless examples of using Python to access the REST APIs of Atlassian products.

Good luck.