Hello everyone!
I am writing a formula that finds the last subtask of a certain type in a task and want to output comments from this subtask. Is it even possible to do this?
WITH getSubtaskComments() = (
WITH lastSubtask = SORT_BY(
SPLIT(subtasks, ',').MAP(issue($)).FILTER($.issuetype = 'Subtask'),
$.startDate
).LAST():
issue(lastSubtask).comments // i tried this, but it's not working
):
IF issuetype == 'Task':
getSubtaskComments()
ELSE:
undefined