Hi!
How I can force the user to have a task have at least one subtask before moving to another state?
Hey @Beatriz ,
While this might not be possible out of the box, a workflow app from the Atlassian Marketplace capable of evaluating so-called Jira expressions will do the trick.
Taking Jira Workflow Toolbox as an example, the required steps would be as follows:
issue?.subtasks?.length > 0
P.S. I'm part of the team behind the beforementioned app.
Regards from Germany,
Thorsten
You can enforce this rule in Jira using workflow validators. In your workflow settings, add a Scripted Validator (if you're using ScriptRunner) or a Regular Expression Check to ensure that a task has at least one subtask before transitioning to another state.
Another option is using Jira Automation to send a warning or prevent the transition by reverting the status if no subtasks exist. If you're on Jira Cloud and need a no-code approach, you might need a marketplace app like JSU Automation Suite to enforce this behavior.
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.