Forums

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

JIRA Service Desk Project Creation using groovy script

venkati July 20, 2018

Hello,

 

I am trying to create a project a service desk project (Basic or It Service Desk) in groovy script. But it did not work. Pls refer the script below. Any suggestions? 

Builder builder = new Builder()
builder.withKey(projectKeyValue).withName(projectNameValue).withLead(user).withDescription('Created From Workflow').withType("service_desk").withProjectTemplateKey("com.atlassian.servicedesk:classic-service-desk-project");

def data = builder.build()
def projectResult = projectService.validateCreateProject(user, data)
Project prj = projectService.createProject(projectResult)
log.debug("Project ID:-->"+prj.getId())

1 answer

0 votes
Fazila Ashraf
Community Champion
July 20, 2018

Hi @venkati

What error do you receive?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events