Forums

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

Jira automation - copying field values that are updated in to 'Labels' field

tom_thain
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!
May 9, 2023

Hi, currently Atlassian Analytics does not have 'Team' field as an available filter, so I wanted to create a workaround.

 

Does anyone know how I could create an automation, so that every time the 'Team' field is populated, a label is created in the issue which copies the value present in the 'Team' field.

For example, I update the 'Team' field to team c, then automation kicks in and adds a label to that issue called 'team c'

1 answer

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 Leaders.
May 9, 2023

Hi @tom_thain 

Creating the automation would be simple...the question is will it work: there are (unfortunately) several things called "Team" in Jira Cloud, and I recall they are not all supported by rules.

First thing, I recommend finding an example issue with your Team field set, and then use this how-to article to learn if it is supported by automation rules: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/  This will also tell you the exact syntax for the smart value to access the field.

If it is available, your rule could be something like this:

  • trigger: issue field updated for Team
  • action: edit issue to add a label, based on the Team field

Another possible wrinkle is that not all fields are listed in that trigger.  In this case, you would need a rule with the Issue Updated trigger, and then check the change log to learn if your field changed.

To get you started on creating your rule, please review this documentation and examples:

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events