Jira Automation branch condition to find issue with unreleased versions

James Maclean
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 14, 2025

Trying to build an automation where upon version release check for issues that have more than 1 version in the "FixVersions" field and if any of those versions are unreleased.

I'm in a branch so don't get to access if/else or nested if.

Also have to do an AND condition which AFAIK means I can only use a JQL condition.

Screenshot 2025-02-14 at 4.36.03 pm.png

Screenshot 2025-02-14 at 4.34.31 pm.png

Screenshot 2025-02-14 at 4.22.59 pm.pngScreenshot 2025-02-14 at 4.23.19 pm.pngScreenshot 2025-02-14 at 4.23.30 pm.pngScreenshot 2025-02-14 at 4.23.41 pm.png

 

2 answers

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 14, 2025

Hi @James Maclean -- Welcome to the Atlassian Community!

Your JQL condition does not work as the JQL is incorrect.  It uses a smart value expression on the left side of of a test, and JQL only supports fields on the left side:

{{issue.fixVersions.size}} > 1 AND ...

 

Back to your question, you may use a JQL branch rather than a branch on issues in the release to find the issues with the unreleasedVersions() function:

project = yourProjectKey
AND fixVersion = "{{version.name}}"
AND fixVersion IN releasedVersions()
AND fixVersion IN unreleasedVersions()

If you need the specific, unreleased versions for that comment, they may be found with smart value, list filtering on the fixVersions field:

This issue is also in unreleased versions:
{{#issue.fixVersions}}
{{#if(not(released))}}
* {{name}}
{{/}}
{{/}}

 

Kind regards,
Bill

0 votes
Vishal Biyani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 14, 2025

@James Maclean 

I am assuming with a trigger "When: Version released", you are going in branch "Issues Fixed in Version". Using below smart values you can know if the versions attached to the issue are released or not.

Will this help you move forward?

{{#issue}} {{fixVersions.name}} {{fixVersions.released}} {{/}}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events