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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

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.
Nov 03, 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.

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