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":
It’s very important to have access to the workflow process from anywhere. Especially if you manage the work of others. There is no difference whether you’re out of office, or drive a ca...
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