...
Code Block | ||
---|---|---|
| ||
//Condition on non-linked issue if(isNull(getLinkedIssues(key)) || size(linkedIssues(key))==0) { return true; } return false; |
...
Condition based on mathematical expression
A workflow condition that allows you to disable a particular transition when the mathematical expression calculated does not accomplish the script condition:
Code Block | ||
---|---|---|
| ||
//Condition based on mathematical expression
number n = rand() + e();
if(n >= 1) {
return true;
}
return false; |
To be more specific, rand() generates a number in interval [0, 1] and e() is the Euler constant. The workflow condition will be not available if the sum of the random number and the Euler constant is less than 1.
More details can be found on Math Routines section.
Condition based on boolean expression
...