I am currently using the below expression to check if a linked issue has been set to done before the workflow allows the issue to move to the next step in the workflow.
// Check all linked issues of a certain link type are at certain status
issue.links
.filter(l => l.type.inward == '<span>To be done with</span>')
.every(l => l.linkedIssue.status.name == 'Done')I now need to clarify the check so that it only prevents the issue from transitioning if a specific issue type is linked with the 'To be done with' link type and that linked issue is set to done.
I will admit Jira expressions are not my strong suit and so would appreciate any assistance
Kind regards
Michael