Forums

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

enable / Disable sub task

efahrenkrog February 18, 2019

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.

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 18, 2019

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:

https://confluence.cprime.io/display/JJUPIN/Customizing+workflows#Customizingworkflows-Writingvalidators,postfunctions,andconditions

Suggest an answer

Log in or Sign up to answer