how do i set the assignee when creating the issue with scriptrunner. The current code looks like this:
manualInputParameters.with {
projectId = project.id
summary = "${event.version.name} | Regression | Manual"
description = "Auto Generated Test Plan for ${event.version.name}. This Test Plan will have all the Manual and Powershell Test Cases"
issueTypeId = newIssueTypePlan.id
reporterId = user.name
}
manualInputParameters = manualInputParameters.setComponentIds(11700) manualInputParameters = manualInputParameters.setFixVersionIds(vers.getId()
manualInputParameters = manualInputParameters.setPriorityId("3")
manualInputParameters = manualInputParameters.addCustomFieldValue("customfield_12618",bDate)
manualInputParameters = manualInputParameters.addCustomFieldValue("customfield_12619",eDate)
manualInputParameters = manualInputParameters.setAssigneeId(userManager.getUserByName("username").getKey())
why do you pass the key, why not the id ?
tried everything. still it doesn't work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!
Register todayOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.