The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Remove a value from fixVersions

Ryan Schamp
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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
Contributor
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
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events