Hi
I am using following code to set the reporter of the issue that is being created
def issueInputParameters = issueService.newIssueInputParameters().with {
setIssueTypeId(currentIssueType.id)
setReporterId((ComponentAccessor.userManager.getUserByName("ReporterName") ).key)
setSummary(summary)
setPriorityId((constantsManager.priorities.findByName(priorityName) ?: constantsManager.defaultPriority).id)
}
Issue gets created correctly, however I have noticed that the "Reporter" and "Assignee" both are set to admin which is the user that executes the automation rule.
Question: How do I get the "ReporterName" assigned to the Reporter jira attribute.
Also, how do the set the assignee as well in the IssueInputParameters?
Thanks in advance.