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.
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
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?
where in editing the due date I use the varaiable being defined earlier on, namely {{NewDueDate}}.
Thanks in advance,
Vincenzo.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could use {{issue.fixVersions.last.name}}
Also see this article from @Bill Sheboy on finding items listed in a field.
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.