Forums

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

Advanced Editing using automation for Jira

Janakiraman S
Contributor
March 10, 2022

Hi Team,

I am trying to update a custom field by removing couple of entries and adding a new entry. I have a manual triggerwith two edit Issue blocks as below.  When I run this, the value CW10 is added and the value CW12 gets removed. But the value CW11 still remains on the custom field. 

{
"update": {
"CF_name": [{
"remove": {"value": "CW11"},
"remove": {"value": "CW12"}
}]
}
}
 {
"update": {
"CF_name": [{
"add": {"value": "CW10"}
}]
}
}

 I find it really strange and cannot understand why CW11 is not getting removed. If you have been through this, please suggest if and how this can be fixed.

Thanks for your suggestions,

Janaki.

1 answer

0 votes
Radek Dostál
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.
March 10, 2022

This sounds that it only works with one "remove", can you try

"CF_name": [{
"remove": [{"value": "CW11"},{"value": "CW12"}]
}]

or

"CF_name": [{
"remove": {"value": "CW11"}
}],
"CF_name": [{
"remove": {"value": "CW12"}
}]

and if neither work, set up the same action with json twice? One to remove CW11 only, second time to remove CW12 only.

I don't see any good documentation about multiple values but those would be my first ideas to try.

Suggest an answer

Log in or Sign up to answer