The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How can i set a labels type custom field using smart values in automation?

Diane Fahr
January 27, 2022

We have a labels type custom field called Market.  I am trying to copy from labels to market.  I have tried this method:  market.jpeg

and I tried ..

{
"fields": {
"customfield_12501": {{triggerIssue.labels}}
}
}

when i add a log statement for issue market: {{triggerIssue.Market}} only a blank is returned. 

How can I access this field?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
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 Champions.
January 27, 2022

Hi @Diane Fahr 

The labels field is a list of values, so perhaps trying converting it into a JSON array first, like this:

{
"fields": {
"customfield_12501": {{triggerIssue.labels.asJsonStringArray}}
}
}

Kind regards,
Bill

TAGS
AUG Leaders

Atlassian Community Events