I have a challange in my organizations - need to automate one proces.
Every time when sub-task is created - I need to convert it to BUG and add some special fields. Adding special fields is not a problem but cant set a triger for converting a sub-task into BUG. Thank you for help.
Hi qba
Thanks for your question.
You're right—Jira doesn’t allow changing the issue type (like from Sub-task to Bug) automatically using built-in Automation. But here are a couple of ways you can work around it:
Option 1: Use Automation + Clone
Since we can’t directly convert a Sub-task to a Bug, we can automate cloning the Sub-task as a Bug, and then delete or close the original sub-task.
Steps:
Go to Project Settings > Automation.
Create a new rule:
Trigger: Issue created
Condition: Issue Type = Sub-task
Action: Clone issue
Set Issue Type = Bug
Add your special fields here
(Optional) Add another action to Transition or Delete the original sub-task
This way, every time a sub-task is created, a Bug will be automatically created with the same content + your custom fields.
Option 2: Use ScriptRunner or Other Apps
If you're okay using a Marketplace app like ScriptRunner, you can write a script to change the issue type directly. This is more flexible but needs admin access and scripting knowledge
Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!
Help us plant more trees
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.