I am planing to create a global automation rule that change the assignee to Designated Employee( user custom filed) in any issue if the assignee is on the out of office group the value of Designated Employee get fetch from out of office Ticket the code does not give me an Error but doe not change the assignee can you please advise
The scenario goes like this when the employee want to take a vacation He open out of office ticket and In the ticket he will mention the date his vacation will start and who is the employee will replace him ( Designated Employee) When his vacation start the ticket will go to out of office status And the system will Add him to out of office group After that there is a global automation When any ticket get assigned to if the assignee is in out of office group run this code
Okay. You are probably best reaching out to Adaptavist or CodeBarrel then. Adaptavist creates the ScriptRunner plugin, and CodeBarrel creates the Automation plugin. I’ve never used them in tandem.
It’s still not clear what is ACTUALLY triggering this. You haven’t provided information around what actually triggers this code. What triggers the automation?
Okay: My previous statement stands then. This is being called as an Event Listener. You cannot just call #setAssignee(ApplicationUser applicationUser).: It will not work.