Forums

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

Jira Automation - Add Epic FixVersions to Epic Children

anne_gerten
Contributor
August 7, 2024

Hi,

I am trying to create a Jira Automation that adds the Epic FixVersions value to all its epic children, while keeping the existing Epic children FixVersions value.

Here is what I have so far:

fixversion.JPG

 

When I run the automation, I get this error:

Error editing issues

(Specify a valid value for FixVersions (fixVersions))

 

Does anybody know how to adjust the JSON to make this work?

Thanks!

1 answer

1 accepted

0 votes
Answer accepted
Marc - Devoteam
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.
August 7, 2024

Hi @anne_gerten 

I achieved this by first creating a variable where I store the Epic fix version.

Name: ExistingFixVersion

Smart Value: {{issue.fixVersions.name}}

I do this before the branch and then

{
"update": {
"fixVersions": [
{ "add": {"name" : "{{ExistingFixVersion}}" }
}
]
}
}

 

anne_gerten
Contributor
August 7, 2024

Thanks! So it is not possible out of the box with smart values? :( 

How can I create a variable with the Epic Fix Version?

Marc - Devoteam
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.
August 7, 2024 edited

Hi @anne_gerten 

The Fix Version field is the same globally.

So you will first need to create a variable that stores the Fix Version used on the Epic issue type and then you can use the variable in the JSON

So we still use smart values in the automation, but issue.Epic.fixVersion.name is not an existing smart value.

Only issue.fixVersions.name exists

 

anne_gerten
Contributor
August 7, 2024

Thanks!

issue.fixVersions.name is what I used in my automation though. Would you know why it does not work in my case?

 

{
"update": {
"fixVersions" : [
{
"add": {
"name": "{{issue.fixVersions.name}}"
}
}
]
}
}

fixversion.JPG

Like • Marc - Devoteam likes this
Marc - Devoteam
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.
August 7, 2024

Hi,

Yes please.

anne_gerten
Contributor
August 7, 2024

I think I finally got it working with using the variable as you suggested. Thanks for your help!

fixversion2.JPG

Like • Marc - Devoteam likes this

Suggest an answer

Log in or Sign up to answer