Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Rest API to list all the Capabilities under the requested epic

Sam V August 13, 2022

Hi:

I am looking for an API to list all the linked capabilities under the EPIC and all the Features under the requested capabilities.

I tried the 

/align/api/2/Epics/{id}

and

/align/api/2/Capobilities/{id} endpoint but couldn't see the required information. 

Any pointer will be of much help.

Thanks.

2 answers

1 accepted

0 votes
Answer accepted
Rodrigo Cortez
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 16, 2022

Equivalently, the same principle can be applied to the Features endpoint.

Making a GET call towards it, along with a filter for the parentID -- matching the Capability of interest -- will return all IDs of the related features.

curl -X GET 'https://instance.jiraalign.com/rest/align/api/2/Features?$select=id&filter=parentID%20eq%202326' -H 'accept: */*' -H 'Authorization: bearer MyObfuscatedToken'

The result should look like this:

[{"id":8829},{"id":10348}]

Screen Shot 2022-08-16 at 18.55.35.png

0 votes
Rodrigo Cortez
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 16, 2022

Hi @Sam V the following query will likely satisfy your need:

curl -X GET 'https://instance.jiraalign.com/rest/align/api/2/Capabilities?$select=id&filter=parentID%20eq%202221' -H 'accept: */*' -H 'Authorization: bearer MyObfuscatedToken'

The teardown is as follows:

  • $select=id -- this parameter will tell API to only return the ID of the related Capabilities
  • filter=parentID%20eq%202221 -- the filter parameter defines that only records whose parentID properties equal the Epic ID "2221" parameter informed.

The result should look like this:

[{"id":2222},{"id":2224},{"id":2355}]

Each number in this JSON response is an ID of a related Capability.

Screen Shot 2022-08-16 at 18.33.42.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events