Hi,
I'm looking for workflow post validation for prevent Story to transition when:
1)Bug is linked into Story with,
2)Severity: S1 or S2,
3)Status: Done, Cancelled.
While, other bug severities ae allowed or any different issue type.
Post validator:
(linkedIssue.getAsString("issuetype") in ["Bug"]) && (!linkedIssue.getAsString("Severity") in ["Very High", "Critical"] || (linkedIssue.getAsString("status") in ["Done", "Cancelled"] && linkedIssue.getAsString("Severity") in ["S2", "S1"]))
Kindly,
Gilad