I am running this as a post-function via ScriptRunner but it is not setting the assignee for some reason:
if(issue.assignee == null){
issue.setAssignee(issue.reporter)
log.info("post assignee " + issue.assignee)
}
My log output comes back with 'post assignee THE RIGHT VALUE', but it is not reflected in Jira when I open the issue.
This seems so simple but not working, any help would be greatly appreciated.
Hi @Joe Red ,
What is this post-function used for? Are you trying to set issue reporter as assignee? If so, can you try this
if(issue.assignee == null)
{ issue.assignee=issue.reporter
log.info("post assignee " + issue.assignee)
}
@Niranjan that is working in the post-function but then it does not reflect that in the task when I go to it in Jira.
I am trying to set the assignee to the reporter if an assignee isn't selected upon ticket creation.
I have 2 post-functions after this in the workflow, could that have anything to do with it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Joe Red ,
The script is working for me as expected.
if(issue.assignee == null)
{ issue.assignee=issue.reporter
}
I do not think that the other two functions are causing the issue. Can you check the logs while making this transition?
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.
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.