Hello,
I have several transition cycle and for each a set of subtasks have to be completed, therefore a transition must not be performed if any of their related subtasks is pending.
I have tried several syntaxes but none is working.
Using CustomFieldName
issue.subtasks.filter(subtask => subtask.issueType.name == 'TypeOfSubTasks' && subtask.issueType.TypeOfActivity.value == 'ABC' && subtask.status.name != 'Closed').length == 0
Using CustomFiled ID
issue.subtasks.filter(subtask => subtask.issueType.name == 'Sub Test Execution' && subtask.issueType.customfield_5555.value == 'ABC' && subtask.status.name != 'Closed').length == 0
I set this in the workflow as VALIDATOR selecting ScriptRunner Script
I will appreciate any help to implement this control to the workflow.
Thank you in advance.
Enrique