Forums

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

Want to add back the value to 1 field which is been removed from 2nd field

Sanjivani Wayal
Contributor
July 25, 2023

Hi,

I have done the automation that app3 field has 4 values and among those if 2 values are mentioned on app2 field it will get removed from app3 field with below -

{
"update": {
"app3": [
{{#issue.app2}}{"remove": {"id":"{{accountId}}"}}{{^last}},{{/}}{{/}}
]
}
}

 

but now iam stuck with opposite scenario that if any value is removed from app2 field it should get added back to app2 by using below 

{
"update": {
"app3": [
{{#issue.app2}}{"add": {"id":"{{accountId}}"}}{{^last}},{{/}}{{/}}
]
}
}

it adds last value from aap2 which is already present in app2 , but i want to add the value which was removed from app2 field to app3 field

 

Can anyone please help with the same

1 answer

0 votes
Ste Wright
Community Champion
July 30, 2023

Hi @Sanjivani Wayal 

A similar request came up earlier this year - see: https://community.atlassian.com/t5/Jira-Software-questions/Automation-Value-added-to-one-field-removes-from-another/qaq-p/2235504

This might help to resolve your issue :)

Ste

Sanjivani Wayal
Contributor
August 2, 2023

Hi @Ste Wright 

Unfortunately That solution Doesn't work for me it is adding the last value which is present in other field not the one which is removed

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