Forums

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

Append values of a label type custom field from trigger issue to destination issue

francis.guibernau
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 18, 2022

Is there any way to copy the values of a custom field of type label from the trigger issue to the destination issue?

My use case is that when a ticket is linked to another ticket via the "is caused by" relationship, the contents of this field are added to the end of the same field in the destination issue.

I managed to get it to work on two multi select custom fields, but I'm just having a hard time with this one.

The following is the example of the rule that works with the multi select fields:

Capture.PNG

2 answers

1 accepted

0 votes
Answer accepted
Bill Sheboy
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.
February 18, 2022

Hi @francis.guibernau  -- Welcome to the Atlassian Community!

Please take a look at this documentation page for adding label values, substituting in your custom field name: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Adding-labels

If you instead want to copy/replace all the values, please look at the other examples on that same page.

Kind regards,
Bill

0 votes
Stefan Salzl
Community Champion
February 19, 2022

Hi @francis.guibernau ,

I was facing similar behaviour and kinda confused by that the documentation says (thanks for the link @Bill Sheboy ).

Maybe I just have a missunderstanding of the technical part. See my description in a question that came up today and seems similar to yours:
https://community.atlassian.com/t5/Automation-questions/concatenate-an-item-in-to-issue-labels-asJsonStringArray/qaq-p/1949683

 

Best
Stefan

Stefan Salzl
Community Champion
February 21, 2022

Hi @francis.guibernau 

we got the relieving solution to this in another question. Guess the following is what solves your problem:

image.png

In this case I choose "copy from issue" which refers to the source issue but you could also choose "copy from trigger issue".

Hope this helps.

Best
Stefan

Suggest an answer

Log in or Sign up to answer