Forums

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

Automation - add a value to a field instead of overwritig it with a new one

Tomáš Vojvoda
Contributor
March 28, 2023

Hello,

So far I have been unable to find an answer to my problem, where I want in an automation rule to be able to actually edit a field, instead of overwriting it(which is what the "edit field" function does)

I want to add a new organization to Organizations field while leaving any organizations that are there intact.
If I use "Edit field" my options are only to "set value" which means change the value to something new, disregarding it's current value.

Any help is appreciated.
Tomas

1 answer

0 votes
Jack Brickey
Community Champion
March 28, 2023

Hi @Tomáš Vojvoda ,

can you try the following JSON example within the Edit action

{
"update": {
"customfield_xxxxxx" : [
{
"add": {
"value":"new-value"
}
}
]
}
}

 Replace the bold values.

Tomáš Vojvoda
Contributor
March 28, 2023

Thanks Jack, I will try that.

Like Jack Brickey likes this
Tomáš Vojvoda
Contributor
April 2, 2023

For some reason this page is preventing me to write  respons as I would have wanted, so i try just words:

It did not work out, I have used Organizations field and a value "use reporter's email domain" and it returns error that it expects a number... which is weird. Why would it expect  a number?

Any ideas?

Tom

Jack Brickey
Community Champion
April 2, 2023

Please provide screenshots of you rule details.

Suggest an answer

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

Atlassian Community Events