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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.