Forums

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

how to automate a proces of converting sub-task into bugs?

qba
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!
June 6, 2025

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.  

1 answer

0 votes
Riya Thakur
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!
June 6, 2025

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events