The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Assignee with Scriprunner doesn't work

Yuval Maron
Contributor
August 24, 2021

Hey,

I have a scripted mail handler that creates issueObject and then creates an issue based on that issueObject. The problem is that at the first log it does prints the right assignee for the issueOBbject but the second log prints null. I really can't figure out what's going out wrong since it does creates the issue correctly but with out assignee. 

The relevant code: 

issueObject=issueFactory.getIsssue()

.... // Assign values to the issue object

issueObject.setAssignee(assignee) 

log.warn(issueObject.getAssignee) // prints the right assignee

issue=messageHandlerContext.createIssue(user,issueObject) // Create the issue- works fine

log.warn(issue.getAssignee) // prints null 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Nir Haimov
Community Champion
September 4, 2021

Hi @Yuval Maron 

Can you share how you set the "assignee" variable?