Remove a value from fixVersions

Ryan Schamp April 3, 2024

My automation should remove a value from fix versions when a label is changed. The trigger works fine but I can't get the correct syntax to remove a value from the fixVersions field using the Edit Issue action.

I'm getting the error: "Error while parsing additional fields. Not valid JSON."

In the "Additional Fields" box I've tried a few variations of json:

{
"update": {
"fixVersions": [
{
"remove": [{version.asJsonObjectArray("check")}]
}
]
}
}

and

{
"update": {
"fixVersions": [
{
"remove": [{"name":"check"}]
}
]
}
}

 Capture.JPG

1 answer

1 accepted

1 vote
Answer accepted
Kalyan Sattaluri
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.
April 3, 2024

Hello @Ryan Schamp 

If you are removing only 1 version, you can directly use below JSON... remove name with any smart value if you have..

{
"update": {
"fixVersions" : [
{
"remove": {
"name":"check"
}
}
]
}
}

Ryan Schamp April 3, 2024

You're my hero!

 

Like # people like this
Beth August 1, 2024

You are my hero, as well!! Thank you!!

Like Kalyan Sattaluri likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events