Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

API: Get inbound references from object/:id endpoint

audun hilden November 18, 2024

I'm mapping all the computers in the frontend and need to display who has each computer within the same UI.

Currently, I'm using the navlist endpoint (/rest/insight/1.0/object/navlist) to fetch the left sidebar with all the computers. However, to include the ownership information, I also need to make an additional API call for each computer.

Is there a bulk endpoint available for this operation?

1.png

1 answer

0 votes
Chander Inguva
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 21, 2024

Hi @audun hilden 

  1. Use AQL Query: Construct a query like objectType = "Computer" to fetch all computer objects.

  2. Endpoint: Send a POST request to:

    https://<your-domain>.atlassian.net/rest/servicedeskapi/assets/workspace/<workspaceId>/v1/aql/objects
  3. Request Body:

    {
      "aql": "objectType = \"Computer\""
    }
    
  4. Response: The API will return all computer objects along with their attributes, including ownership.

Replace placeholders (<your-domain> and <workspaceId>) with your Jira details, and ensure proper authentication is configured. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events