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

Filter by release with rest API

Hi!

I'm trying to create report tool on top of Align. I've faced the problem that i can't filter neither Epics nor Milestones by releaseIds.

I tried

filter=contains(releaseIds,8)

 but it returns 400 error. 

1 answer

1 accepted

1 vote
Answer accepted
Roman
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 19, 2021

Hi Arseny!
Try this for filtering by fields that are arrays of ids (integers):
milestones?$filter=releaseIds/any(x: x eq 8)
epics?$filter=releaseIds/any(x: x eq 8)
And this for filtering by fields that are ids (integers) as a part of a nested object (eg. array of releases objects within a main epic object):
milestones?expand=true&$filter=releases/any(x: x/id eq 8)
epics?expand=true&$filter=releases/any(x: x/id eq 8)

Both queries will return all epics/milestones that have release as one of the releases they are tied to. However, it doesn't exclude the possibility that those epics/milestones can have any other releases at the same time. Basically, the query says 'Please, give me all epics/milestones that have any of their releases equal to release with id 8'.

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events