Forums

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

Auto Populate Label from Another Fields

Danielle Mather January 5, 2021

We are looking to auto populate the label field with the value from a custom field using the JIRA built in project automation. Does anyone know how to do this? The custom field is variable so it would be filling out that field then that field would populate the label. 

2 answers

0 votes
CTO Build, Run, and Architecture September 9, 2021 edited

thanks

0 votes
Ravi Sagar _Sparxsys_
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.
January 5, 2021

Hi @Danielle Mather 

In your rule add "Edit issue field" action and in the additional fields use this JSON.

{
"fields": {
"labels": [
{{#issue.labels}}"{{.}}", {{/}}
"{{issue.Custom Field.value}}"
]

}
}

This will append custom field value to existing labels. Make sure the value is valid so label can accept it.

Ravi 

CTO Build, Run, and Architecture September 9, 2021

@Ravi Sagar _Sparxsys_ 

Automatically populate the Labels field:  We would like to have the "Labels" field automatically populated with the value "In-Progress", when a story is moved into the Analysis column.  The label should be added to any other values which are previously there. 

Adam Ziecik
Contributor
April 21, 2023

@Ravi Sagar _Sparxsys_ - would it be possible to make it remove the label once it is removed manually from the custom field? Could that be added to this JSON or a separate automation would be needed? How could this be done?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events