Hi,
Our workflow creates 'Design' and 'Development' sub tasks. I set the development task assignee the same as the design task assignee in a post-function script for 'Design' task workflow.
def dsnAssignee = issue.getAssigneeId()
def subTasks = issue.getParentObject().getSubTaskObjects()
subTasks.each {
if (it.issueType.name == "Development"){
it.setAssigneeId(dsnAssignee)
}
}
This does not set the assignee of 'Development' task to the 'Design' task assignee. What else do I need to do in the above script?
Thanks