Create an issue only when a specific Label is added to a Jira issue
Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.
Summary
Learn how to use automation to create work items automatically when a specific label is added to an existing work item, to easily set up new tasks on your project.
Solution
Configure the automation rule
In this example, we will use the label 'test.'
Trigger: Field value changed
Fields to monitor for changes: Labels
Change type: Value added
For: Create work item, Edit work item
Condition: {{smart values}} condition
First Value:
{{fieldChange.fromString}}Condition: Does not contain
Second Value: test
Condition: {{smart values}} condition
First Value:
{{fieldChange.toString}}Condition: contains
Second Value: test
Action: Create work item
Configure the creation of the new work item as desired.
About the use of smart values conditions
The use of these two smart value conditions is to validate:
First condition: checks if the label is not already part of the work item's labels.
Second condition: checks if the label is a new label being added to the work item. It confirms if the label was on the field before it was edited.
Was this helpful?