Hi, I have the following issue.
I have a task associated with a task, but I need that it can only be created when it is in a certain state, I explain myself better, the user can only create the task "xxx" when the incident is in the "yyy" state, if it is not in the state "yyy" can not create a subtask.
Thank you in advance.
Hello,
I believe that you need a plugin to accomplish this requirements.
There are multiple plugins, which can help you: Power Scripts, ScriptRunner and so on.
If you want to use the Power Scripts, then you could write a validator for the create issue transition for the sub-task issue type with a code like this:
if (parent.stats != "your status") {
return false, "Parent must be in status your status";
}
return true;
You can find more information here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.