...
Code Block | ||
---|---|---|
| ||
//Condition on linked issues if(isNull(getLinkedIssues(key)) ||return size(linkedIssues(key))==0) { return false> 0; } |
Condition on non-linked issue
A workflow condition that allows you to disable a particular transition when the current issue has linked issues.It's the reverse condition of the SIL code above:
Code Block | ||
---|---|---|
| ||
//Condition on non-linked issue if(isNull(getLinkedIssues(key)) || return size(linkedIssues(key)) ==0) { return true; } return false 0; |
Condition based on mathematical expression
...
In the example above it is used the addition between tstSpent and tstRemaining, but the user can also use the subtraction between tstEstimate and any of the other 2 intervals.
All sub-tasks must be resolved
The transition won't be shown unless all sub-tasks are resolved. You can also specify a particular resolution that the sub-tasks must be in (in our example Fixed):
Code Block |
---|
string[] subtasks = subtasks(key); for(string subtask in subtasks) { if(%subtask%.status != "Resolved" || %subtask%.resolution != "Fixed") { return false; } } |