Clone issue - set fix version based on severity(custom field 10725)
{
"fields": {
"fixVersions": [ {
"name":
{{#if(equals(customfield_10725.value, "1 - Critical"))}}
1_0_1 - Day 1 Patch
{{/}}
{{#if(equals(customfield_10725.value, "2 - Major"))}}
1_0_1 - Day 1 Patch
{{/}}
{{#if(equals(customfield_10725.value, "3 - Minor"))}}
1_1_0 - Season 1
{{/}}
{{#if(equals(customfield_10725.value, "4 - Trivial"))}}
1_1_0 - Season 1
{{/}}
{{#if(equals(customfield_10725.value, " None"))}}
1_1_0 - Season 1
{{/}}
}]
}
}
Hi @Shelli Kleman - I think your values for fixVersions need to be enclosed in double quotes, like:
"1_0_1 - Day 1 Patch"
ALSO - when I've tried to do advanced editing with JSON in the past, despite it making it impossible to read, I've had to sometimes remove the linefeeds, so your name value would end up looking like this:
{{#if(equals(customfield_10725.value, "1 - Critical"))}}"1_0_1 - Day 1 Patch"{{/}}{{#if(equals(customfield_10725.value, "2 - Major"))}}"1_0_1 - Day 1 Patch"{{/}}{{#if(equals(customfield_10725.value, "3 - Minor"))}}"1_1_0 - Season 1"{{/}}{{#if(equals(customfield_10725.value, "4 - Trivial"))}}"1_1_0 - Season 1"{{/}}{{#if(equals(customfield_10725.value, " None"))}}"1_1_0 - Season 1"{{/}}
(I did NOT add spaces there. I in fact removed all spaces.)
I'll give that a try and see if works. Thank you for the suggestion.
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.