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

/align/api/2/Features/{id} does return team objectives.

Chris Cheah November 3, 2022

Is there a way to retrieve objectives by feature ids?

1 answer

1 accepted

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

Hi @Chris Cheah the following query will likely satisfy your need:

curl -X GET 'https://instance.jiraalign.com/rest/align/api/2/Objectives?$select=id&filter=featureIds%2Fany%28d%3A%20d%20eq%20557%29' -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=featureIds%2Fany%28d%3A%20d%20eq%20557%29 -- the filter parameter defines the matching criteria for the Feature ID.  In this case, Feature "557"
    The unencoded filter looks like this:
    featureIds/any(d: d eq 557)

The API call result should look like this:

[{"id":555},{"id":571}]

Each number in this JSON response body is the ID of a related Objective.

ObjectiveID by FeatureID.png

 

Please refer to Help Center articles 10X: API 2.0 for further details on filters, query syntax, and encoding.

Chris Cheah November 3, 2022

Exactly what I am looking for!

Like Rodrigo Cortez likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events