I am using Script Post Function - Create a Subtask trying to come up with the proper condition to ring true for the following scenario:
If custom field checkbox type named 'Development Subtasks' has a value 'Research' checked
AND
None of the existing subtasks on the issue has the summary 'Research', create the subtask.
I'm stumped on how I can evaluate the subtask summary.
cfValues['Development Subtask'].contains('Research') &&
issue.subTasks.any
{it.summary == "Research"}
Thanks in advance!