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

0 votes
Nir Haimov
Community Champion
September 4, 2021

Hi @Yuval Maron 

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

Suggest an answer

Log in or Sign up to answer