Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,297,312
Community Members
 
Community Events
165
Community Groups

How can I get the latest released or earliest unreleased version?

Edited

I'm trying to make an automation that compares a version on an issue (or more precisely, from the latest comment on an issue) with my released versions, and if the version is the latest released version, I want to perform an action.

In JQL there's the function to get latestReleasedVersion() or earliestUnreleasedVersion(), but I can't get that to work in automation because it's not a smart value ( i.e. {{latestReleasedVersion}}  doesn't return anything).

Getting a list of all versions (or released / unreleased versions) might also work if they're sorted so that I can get the appropriate one from that list, but again I can't find a way to get that info.

I can't search and compare my issue with JQL either (I think) because I can't search for only the latest comments on every issue, and the version that I'm looking for isn't in a field on that issue.

1 answer

1 accepted

0 votes
Answer accepted

Oh ok. After randomly trying a few things, I found how to get the list of versions:

{{project.versions}} 

... and then I can get the first/last/whicheverIWant.


Well, not quite whichever, optimally I'd now be able to filter those issues to only contain `released` versions, which I'm not sure how to do. (Any pointers?)
And to make this even more complex, I'd actually need to check whether the version matches a given regex and only consider those... 

(--> https://jira.atlassian.com/browse/JRACLOUD-76040 / https://codebarrel.atlassian.net/browse/AUT-1241)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

375 views 0 7
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