I have a simple workflow with three serial approval nodes.
The first node is setup to approve on the basis of the users in the Approval field and the field is set as a default value from the Service Desk request type. This user gets the approve/deny email.
Whether or not the trigger is from the email or from inside Jira itself, the approval transition is not followed. I do have a ScriptRunner post-function that resets the Approver field. The post-function does indicate that it is triggered, but somehow I am not ending up at the next status.
Here's the script: (<uesrname> hidden)
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.user.ApplicationUser
ApplicationUser approver = ComponentAccessor.getUserManager().getUserByKey("<username>")
issue.setCustomFieldValue(ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Approvers"), approver)
Any suggestions?
