createProject method
Creates a project based on a project type template, as shown in the following table:
Project Type Key | Project Template Key |
---|---|
business |
|
com.atlassian.jira-core-project-templates:jira-core-simplified-content-management , |
|
com.atlassian.jira-core-project-templates:jira-core-simplified-document-approval , |
|
com.atlassian.jira-core-project-templates:jira-core-simplified-lead-tracking , |
|
com.atlassian.jira-core-project-templates:jira-core-simplified-process-control , |
|
com.atlassian.jira-core-project-templates:jira-core-simplified-procurement , |
|
com.atlassian.jira-core-project-templates:jira-core-simplified-project-management , |
|
com.atlassian.jira-core-project-templates:jira-core-simplified-recruitment , |
|
com.atlassian.jira-core-project-templates:jira-core-simplified-task-tracking |
|
service_desk |
|
com.atlassian.servicedesk:simplified-it-service-management , |
|
com.atlassian.servicedesk:simplified-general-service-desk-it , |
|
com.atlassian.servicedesk:simplified-general-service-desk-business , |
|
com.atlassian.servicedesk:simplified-external-service-desk , |
|
com.atlassian.servicedesk:simplified-hr-service-desk , |
|
com.atlassian.servicedesk:simplified-facilities-service-desk , |
|
com.atlassian.servicedesk:simplified-legal-service-desk , |
|
com.atlassian.servicedesk:simplified-analytics-service-desk , |
|
com.atlassian.servicedesk:simplified-marketing-service-desk , |
|
com.atlassian.servicedesk:simplified-design-service-desk , |
|
com.atlassian.servicedesk:simplified-sales-service-desk , |
|
com.atlassian.servicedesk:simplified-finance-service-desk , |
|
com.atlassian.servicedesk:next-gen-it-service-desk , |
|
com.atlassian.servicedesk:next-gen-hr-service-desk , |
|
com.atlassian.servicedesk:next-gen-legal-service-desk , |
|
com.atlassian.servicedesk:next-gen-marketing-service-desk , |
|
com.atlassian.servicedesk:next-gen-facilities-service-desk , |
|
com.atlassian.servicedesk:next-gen-general-service-desk , |
|
com.atlassian.servicedesk:next-gen-general-it-service-desk , |
|
com.atlassian.servicedesk:next-gen-general-business-service-desk , |
|
com.atlassian.servicedesk:next-gen-analytics-service-desk , |
|
com.atlassian.servicedesk:next-gen-finance-service-desk , |
|
com.atlassian.servicedesk:next-gen-design-service-desk , |
|
com.atlassian.servicedesk:next-gen-sales-service-desk |
|
software |
com.pyxis.greenhopper.jira:gh-simplified-agility-kanban , |
com.pyxis.greenhopper.jira:gh-simplified-agility-scrum , |
|
com.pyxis.greenhopper.jira:gh-simplified-basic , |
|
com.pyxis.greenhopper.jira:gh-simplified-kanban-classic , |
|
com.pyxis.greenhopper.jira:gh-simplified-scrum-classic |
|
The project types are available according to the installed Jira features | |
as follows: |
- Jira Core, the default, enables
business
projects. - Jira Service Management enables
service_desk
projects. - Jira Software enables
software
projects.
To determine which features are installed, go to Jira settings > Apps > Manage apps and review the System Apps list. To add Jira Software or Jira Service Management into a JIRA instance, use Jira settings > Apps > Finding new apps. For more information, see Managing add-ons.
Permissions required: Administer Jira global permission.
Implementation
Future<ProjectIdentifiers> createProject(
{required CreateProjectDetails body}) async {
return ProjectIdentifiers.fromJson(await _client.send(
'post',
'rest/api/3/project',
body: body.toJson(),
));
}