Hi,
I am running this in ScriptRunner's console, just for testing purpose. And I am stummed on this.
In the following, I am just getting an issue, a user, and assigning the issue to that user.
Why is this not working?
It just keeps returning null without changing the assignee.
import com.atlassian.jira.component.ComponentAccessor
def issueManager = ComponentAccessor.getIssueManager()
def userManager = ComponentAccessor.getUserManager()
def user = userManager.getUserByName("tbas")
def issueObject = issueManager.getIssueObject("HW_TEST-64")
issueObject.setAssignee(user)
The logic makes sense, the method here says it should work aswell? See this.
But I don't kno why this aint working.
Could anyone tell me?