Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to pick a specific fix version when using "Version updated" as a trigger

vincenzo_spatafora
Contributor
November 28, 2025

Dear ALL,

I would like to code an automation rule where the trigger is

When: Version updated

My question is: which is the syntax to use under the "More options" of this trigger, called "Version name filter" such that if an issue has for example 2 fix versions, I pick the second one?

I use this expression {{issue.get(1).fixVersions}} but I get "Invalid regular expression".

I use Jira DC version 9.12.

Thanks in advance,

Vincenzo.

2 answers

3 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.
November 28, 2025

Hi @vincenzo_spatafora 

First thing: what problem are you trying to solve?  That is, "why do this"?  Knowing that will help the community offer better suggestions.  Thank you!

Until we know that...

The version-related rule triggers only have the Version: they do not have any issues.

Instead, when you want to access the issues associated the trigger {{version}}, a branch is needed.  And, once inside the branch, you could compare the position of the value within either the {{issue.fixVersions}} or {{issue.versions}} values.

Please note well the trigger smart value for {{{version}} is singular to avoid confusing it with the Affects Version smart value, which is plural: {{issue.versions}}

 

Kind regards,
Bill

vincenzo_spatafora
Contributor
December 1, 2025

Hi @Bill Sheboy,

thanks and sorry: yes, I should have explained better.

I got 2 issues which have 2 different fix versions:

when I change the release date of 1 version, the automation rule should update the issue due date to the new release date.

See please below and either I do something wrong or I have come across another Jira DC limitation?

Version_Part1.jpg

Version_Part2.jpg

where in editing the due date I use the varaiable being defined earlier on, namely  {{NewDueDate}}.

Thanks in advance,

Vincenzo.

0 votes
Marc -Devoteam-
Community Champion
November 28, 2025

Hi @vincenzo_spatafora 

Try using:

{{issue.fixVersions.first.name}}

vincenzo_spatafora
Contributor
December 1, 2025

Hi @Marc -Devoteam-

thanks.

And if I would like to take the second one?

I have tried this {{issue.fixVersions.second.name}}) but it gives nothing (and I'm sure there is a second version).

Cheers, V. 

Marc -Devoteam-
Community Champion
December 1, 2025

Hi @vincenzo_spatafora 

You could use {{issue.fixVersions.last.name}}

Also see this article from @Bill Sheboy on finding items listed in a field.

https://community.atlassian.com/forums/Automation-articles/Automation-concepts-Dynamic-searches-within-a-list/ba-p/2834235 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events