@com.fasterxml.jackson.annotation.JsonInclude(value: JsonInclude.Include.NON_NULL) class ProjectCreateDelegate extends java.lang.Object implements com.onresolve.scriptrunner.hapi.IProjectCreateDelegate
A delegate class for updating existing Jira projects.
The ProjectUpdateDelegate provides methods to modify various properties of an existing
Jira project. This delegate extends the functionality of ProjectOperationDelegate to include
project-specific update operations, such as changing the project name or key.
This class implements IProjectUpdateDelegate, ensuring compatibility with the project update operations in the Jira Cloud API.
Example Usage in Groovy:
Projects.getByKey("OLD").update {
setName("New Project Name")
setKey("NEW")
setDescription("Updated project description")
}
| Type | Name and description |
|---|---|
ProjectOperationDelegate |
delegate |
com.atlassian.jira.rest.clientv2.model.CreateProjectDetails$ProjectTemplateKeyEnum |
projectTemplateKey |
ProjectTypeKeyEnum |
projectTypeKey |
| Constructor and description |
|---|
ProjectCreateDelegate() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
setProjectTemplateKey(java.lang.String projectTemplateKey)Represents a predefined configuration template for creating a Jira project. |
|
void |
setProjectTypeKey(java.lang.String projectTypeKey)Represents a predefined configuration template for creating a Jira project. |
|
void |
setSpaceTemplateKey(java.lang.String spaceTemplateKey) |
|
void |
setSpaceTypeKey(java.lang.String spaceTypeKey) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Represents a predefined configuration template for creating a Jira project.
The projectTemplateKey determines the structure and features of the project, such as workflows, issue types, and fields.
Each template is tailored to specific use cases and must match the projectTypeKey to ensure compatibility. For example,
a Software project type cannot use a template designed for a Service Management project.
Common Templates:
com.pyxis.greenhopper.jira:gh-scrum-templatecom.pyxis.greenhopper.jira:gh-kanban-templatecom.pyxis.greenhopper.jira:basic-software-development-templatecom.atlassian.jira-core-project-templates:jira-core-project-managementcom.atlassian.jira-core-project-templates:jira-core-task-managementcom.atlassian.jira-core-project-templates:jira-core-process-managementcom.atlassian.servicedesk:itil-v2-service-desk-projectcom.atlassian.servicedesk:customer-service-desk-projectExample Usage in Groovy:
Projects.create("SOFTWARE", "Software Project") {
setProjectTemplateKey("com.pyxis.greenhopper.jira:gh-scrum-template")
Projects.create("HR", "HR Support") {
setProjectTemplateKey("com.atlassian.servicedesk:itil-v2-service-desk-project")
}
}
For a comprehensive list of available templates, refer to the Jira REST API documentation.
Represents a predefined configuration template for creating a Jira project.
The projectTemplateKey determines the structure and features of the project, such as workflows, issue types, and fields.
Each template is tailored to specific use cases and must match the projectTypeKey to ensure compatibility. For example,
a Software project type cannot use a template designed for a Service Management project.
Common Templates:
com.pyxis.greenhopper.jira:gh-scrum-templatecom.pyxis.greenhopper.jira:gh-kanban-templatecom.pyxis.greenhopper.jira:basic-software-development-templatecom.atlassian.jira-core-project-templates:jira-core-project-managementcom.atlassian.jira-core-project-templates:jira-core-task-managementcom.atlassian.jira-core-project-templates:jira-core-process-managementcom.atlassian.servicedesk:itil-v2-service-desk-projectcom.atlassian.servicedesk:customer-service-desk-projectExample Usage in Groovy:
Projects.create("SOFTWARE", "Software Project") {
setProjectTypeKey("software")
Projects.create("HR", "HR Support") {
setProjectTypeKey("service_desk")
}
}
For a comprehensive list of available templates, refer to the Jira REST API documentation.
Groovy Documentation