We are using scriptrunner to assign an user when the issue is created. But now everytime the user Robine is assigned to the issue. Can someone check this scriptrunner code?
It worked before so maybe there are some changed i need to make in de code.
def issueManager = ComponentAccessor.getIssueManager();
def customFieldManager = ComponentAccessor.getCustomFieldManager();
def unitInCharge = customFieldManager.getCustomFieldObjectByName("Unit in Charge");
MutableIssue issue = (MutableIssue) event.issue
String unit = issue.getCustomFieldValue(unitInCharge).toString();
final String PLANT_MANAGER = "robine";
final String LOGISTICS = "theo";
final String PRODUCTION = "robine";
final String HSEQ = "dick";
final String MAINTENANCE = "hans";
final String PROCESS_ENGINEERING = "krijn";
final String PROJECT_ENGINEERING = "pieter";
final String LABORATORY = "martin";
final String HUMAN_RESOURCES = "robine";
final String OPERATIONS = "krijn";
final String FINANCE = "vincent";
case "Plant Manager":
case "Process Engineering":
case "Project Engineering":
case "Human Resources":
Project managers know this problem: A “mountain of work” lays in front of you, and you don’t know how and where to tackle them. Different to-dos lie ahead, but just one task after the other can be ha...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events