Hi,
In the script Post-Function I use Fast-track transition an issue.
In additonal code section I would like to set an assignee to the currentUser.
I use issueInputParameters.setAssigneeId - which was suggested by script runner, however it doesnt work.
I put the following code in additional code section:
import com.atlassian.jira.ComponentManager def currentUser = componentManager.jiraAuthenticationContext?.user issueInputParameters.setAssigneeId(currentUser)
thanks for help
If you check your logs that will produce an error because it's not valid. Use this:
issueInputParameters.setAssigneeId(currentUser).name
But your code could be better because that doesn't check for current user being null.
Jamie, do you mean?
issueInputParameters.setAssigneeId(currentUser.name)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yeah that's what i meant
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.