I have a request in JSM which has an asset custom field linked to it. I’m looking for an API endpoint that will allow me to query for said asset object by Id and provide back the details (name in particular for my use case).
I’ve tried both of the following endpoints:
Both provide me the custom field containing my asset in the following format:
What I can’t seem to find is an API which will allow me to pass the above workspaceId and/or objectId in order to get the actual object details. Any assistance is appreciated.
Any insight on this one? It seems the details of the asset record should be available via some API, but as @jvillanuevabeyondtru alluded, there doesn’t seem to be one listed in any of the documentation I’ve reviewed.
And is that REST API accessible from Connect apps (through JWT authentication)?
From your link, I’ve tried this endpoint:
but am getting a 404 response. Presumably that wouldn’t be caused by an authentication failure so I’m not sure exactly what could be going wrong here. I’ve copied that endpoint link directly from the documentation (subbing in my own values of course).
Is it possible the endpoint was moved and the documentation not updated?
I’ve used these endpoints in a Forge app, where they are not supported (doesn’t authenticate automatically as with most other product resources).
I’ve had to use fetch and provided basic auth in headers (Email + API token) :
The base URL for these endpoints is “https://api.atlassian.com”.