Hi there,
I have a situation where the customers want a "Blocked" status for issues. Whilst I have advised that this will often lead to orphaned or forgotten issues sitting in this status, we have come to a compromise.
In order to transition an issue to a blocked status there must be at least one linked issue that "blocks" the issue, and it must be un-resolved. On those issues being resolved I will set up automation to "un-block" the issue.
Looking at: https://docs.adaptavist.com/sr4jc/latest/features/workflow-extensions/jira-expression-examples#linked-issues
I've come up with the following script runner validator that I think should serve:
issue.links
.filter(l => l.type.inward == 'is blocked by')
.some(l => l.linkedIssue.resolution == null)
However always returns false
I've also tried l.type.outward and "blocks" variations of the validator to no success.
Any help would be greatly appreciated, thank you.