Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Set Assignee when creating Issue with scriptrunner

Krishnanand Nayak
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 17, 2020

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())

 

1 answer

0 votes
Marc Minten (EVS)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 18, 2020

why do you pass the key, why not the id ?

Krishnanand Nayak
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 18, 2020

tried everything. still it doesn't work

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

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 today
AUG Leaders

Atlassian Community Events