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.
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
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}} {{/}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.