When raising a defect, the workflow we use automatically assigns the defect to me upon creation.
However, when I am the person raising the issue, I would like the assignee field to be cleared (so, essentially, to unassign me).
Is it possible to unassign an issue if the reporter = the current assignee on creation?
Hi @David Utteridge,
you can use a groovy script post function in the transition "Create" of your workflow. If you are the reporter, the assignee field will automatically be cleared by the transition.
How to implement such a solution for your problem is described here:
Best regards
Dennis
import com.atlassian.jira.ComponentManager import com.atlassian.jira.issue.MutableIssue import com.atlassian.jira.security.Permissions import org.apache.log4j.Logger def log = Logger.getLogger("com.onresolve.jira.groovy.autoassign") def componentManager = ComponentManager.getInstance() def currentUser = componentManager.jiraAuthenticationContext?.user def permissionManager = componentManager.getPermissionManager() if (issue.reporterId == issue.assigneeId) { issue.assigneeId = '' }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your swift response, Dennis. This is really helpful!
I don't suppose you know of a way to do this without using an add-on?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.