Forums

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

Copy field value from one custom field to another custom field - amending instead of overwriting

Adrienne McCoy
Contributor
October 25, 2021

Hello,

 

I have a use case where I need to use smart values to copy one field value (single select) to another field (multi select). Both are user picker fields but one is single select and one is multi. I need to do this without overwriting the values that already exist in the multi-select field.

 

Any help is much appreciated!

1 answer

1 accepted

0 votes
Answer accepted
John Funk
Community Champion
October 25, 2021

Hi Adrienne,

Create your rule based on the desired trigger.

Then add a new Action for Edit Issue.

Select the multi-select field.

Then click the Copy from option from the 3 dots menu to the right of the field.

Select the single select field from the Field to copy value from 

And then click the box for Add to existing values

Adrienne McCoy
Contributor
October 27, 2021

Hi John,

Thank you for the feedback! Works very well!!

I was able to set up my rules as you've described. My use case also involves the use of 5 single-select fields copying to one multi-select field.

My automations work well when I only update one of the single-select fields in a single edit.

Unfortunately, when I update multiple single-select fields in the same Edit, when carrying over to the multi-select field, it overwrites the values. I am guessing because it is all triggering at once. Thus, I end up with only one field's values in my multi-select field.

Like John Funk likes this
John Funk
Community Champion
October 27, 2021

Yes, I think you will have to do 5 separate updates. And I would put a Re-fetch issue between each to be sure. That will slow your rule down somewhat, but it should work. Otherwise it will get overwritten as you have discovered. 

Adrienne McCoy
Contributor
October 27, 2021

Thank you so much! Re-fetching issue between worked like a charm :-)

Like John Funk likes this
John Funk
Community Champion
October 27, 2021

Great! Glad that worked out for you. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events