Hi,guys.
I have listener : issue created.
I need copy field priority and flagged, when subtask create.
I started with priority,but this code dont work without exeptions:
if(!issue.isSubTask()){
return
}
else{
def parentIssue = issue.parentObject
log.warn parentIssue.getPriority().getId()
issue.setPriorityId(parentIssue.getPriority().getId())
}
Field is not update.
pls help