The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Fazila Ashraf
Community Champion
July 20, 2018

Hi @venkati

What error do you receive?

TAGS
AUG Leaders

Atlassian Community Events