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:
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!
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}}" }
}
]
}
}
Thanks! So it is not possible out of the box with smart values? :(
How can I create a variable with the Epic Fix Version?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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}}"
}
}
]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes please.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think I finally got it working with using the variable as you suggested. Thanks for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.