Hello, I want to restrict the creation of subtasks by the type of the parent ticket. For example, I don't want a story type parent ticket to have a subtask. How can I do this using automation?
HI @Manar El Kefi ,
Why would you want to use Automation for this? Could you share a bit more context about the use case/situation you want to solve?
Please keep in mind that natively in Jira this is not supported: https://jira.atlassian.com/browse/JRACLOUD-7990
To restrict the creation of subtasks based on the parent ticket type, you can follow the automation rule below on how to set it up.
Navigate to Automation:
Create a New Rule:
Add a Condition:
Branch Rule/Related Issues:
Add Another Condition:
Add an Action:
Save and Enable the Rule:
Here is the automation flow that I set up based on your requirements above:
I hope this may help!
Annie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To test the rule, you can create a Story issue and create a subtask under it. Then you can see the subtask is automatically deleted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Annie@DevSamurai I did the same steps but when I create for example a subtask for a task parent , it's created. I don't know why
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Manar El Kefi have you enabled the rule yet?
You can go to Project settings > automation > then Click on the Enable button as the screenshot below
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Manar El Kefi There are 2 possible scenarios where it didn't work:
1. Subtasks Created Before Rule Activation: If subtasks were created under a parent task before the rule was enabled, enabling the rule afterward will not retroactively apply to these existing subtasks.
2. New Subtasks After Rule Activation: When you enable the rule and create a new Story and then a subtask under it, you may still see the parent task.
However, when you click on the Issue Key, you can't access it anymore,(as the screenshot below) or try reloading the page. You might find that the subtask has already been deleted.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also you will get an email notification from Jira that your issue has been deleted like that one:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.