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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 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
Community showcase
Published in Jira Align

Lean Portfolio Management with Jira Align

Lean Portfolio Management (LPM) is a relatively newer management methodology which draws from lean and systems thinking approaches to drive value-based outcomes, as opposed to more traditional techni...

226 views 0 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you