Forums

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

changing a defect to a bug changes label

Jean-William Claxton
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!
March 9, 2026

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. 

1 answer

1 accepted

3 votes
Answer accepted
Lara Demir - Hipporello
Atlassian Partner
March 9, 2026

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!

Jean-William Claxton
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!
March 11, 2026

Thank you !

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events