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

JIRA Structure - iterate through fix versions, display earliest release date

pritchsc
Contributor
January 12, 2023

Hi all, 

Hoping for some insight here!

I'm putting a formula in JIRA structure view that will check the fix versions against a due date and display the earliest date found.

I've managed achieve it with the code below, but there is an edge case, we have many fix versions - some do not have all the data populated. The example here could be that teams create fix versions that are internal, like tags, but do not add a release date, which can lead to dates not being compared correctly. 

I would like to iterate through an array of fix versions checking that releasedate is not undefined, if so then we take the next version, using code below will not weed out those that are undefined. 

fixVersions.UMIN_BY($.releaseDate)

 Any pointers would be  much appreciated. 

1 answer

1 accepted

1 vote
Answer accepted
David Niro
Atlassian Partner
January 12, 2023

Hi @pritchsc ,

Is the problem that UMIN_BY() is recognizing undefined release dates as the "earliest"?

If that's right, you could first FILTER() the version array to return only those versions that have a release date populated, and then apply the UMIN_BY() function.

Something like this:

fixVersions
.FILTER($.releaseDate != undefined)
.UMIN_BY($.releaseDate)

Hope this helps!

Best,
David

pritchsc
Contributor
January 13, 2023

Perfect! Thanks David - much appreciated.

Like • 2 people like this
David Niro
Atlassian Partner
January 13, 2023

You are very welcome!

Like • Dave Rosenlund _Trundl_ likes this
Sanjivani Wayal
Contributor
May 23, 2023

Hi @David Niro  

I wanted to get MAX fixversion in structure from all the child issues on the parent issue 

can you please help

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events