Hello,
I'd like to have an automation which, whenever someone changes the issue type from defect to bug, it creates a new label "exdefect" without modifying the other labels.
Condition: equals
Value: Bug
(Optional: You can add an "Advanced Compare" condition if you want to be specific that it must come specifically from "Defect")
Action: Edit issue
Field to set: Labels
Important: Instead of just typing the label, click the dropdown/cog icon next to the field and select "Add to existing" (or in some versions, simply ensure you are using the Add/Remove operation).
Value: exdefect
Why this works:
By using the "Add" operation, Jira appends exdefect to the list. If you were to use a basic "Edit" action with just the word "exdefect", it would delete all other labels (like "production", "urgent", etc.) and leave only your new label.
Pro Tip: If you want to make sure this only happens when it specifically moves from "Defect" to "Bug", use a User Condition or a JQL Condition to check the previous state, though the "Field Value Changed" trigger is usually sufficient for most teams.
Hope this helps you automate your workflow!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.