Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

JIRA API 7.1.0 Create Project

BoYaroslav February 11, 2016

Could you please help me to create project via API?

I've tried to use a bit modified example from API docs, but  it is not working.

var projectData = {};
projectData.name = "Example";
projectData.projectTypeKey = "business";
projectData.projectTemplateKey = "com.atlassian.jira-core-project-templates:jira-core-project-management";
projectData.description = "Example Project description";
projectData.lead = "yaroslav";
projectData.assigneeType = "PROJECT_LEAD";

 Also, where can I get list of avaliable values for projectTemplateKey field? And what fields are mandatory to fill?

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

10 votes
Answer accepted
Jenifer Kuntz May 19, 2016

 

Found this issue with info on the project key - https://jira.atlassian.com/browse/JRA-59658

It wasn't easy to find so hopefully this will help others.

 

for Software

  • com.pyxis.greenhopper.jira:gh-scrum-template
  • com.pyxis.greenhopper.jira:gh-kanban-template
  • com.pyxis.greenhopper.jira:basic-software-development-template
For Business 
 
  • com.atlassian.jira-core-project-templates:jira-core-project-management
  • com.atlassian.jira-core-project-templates:jira-core-task-management
  • com.atlassian.jira-core-project-templates:jira-core-process-management
For Service Desk
 
  • com.atlassian.servicedesk:classic-service-desk-project
  • com.atlassian.servicedesk:itil-service-desk-project
Pasan Uluwatta August 4, 2016

Thanks Jenifer

In addition to that,

Following is the format if you are creating custom templates

groupId.artifactId:key_of_the_project_blue_print

Like Yuan Luo likes this
S T August 22, 2019

Hey Pasan

Do you know if that format is still working?
I try to create a project with my custom-template, but I always get an error. Standard templates are working...

Thanks for your answer :)

2 votes
Moga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 13, 2018

Update for JIRA Service Desk 3.10.0 on JIRA 7.7.0:

  • Basic: com.atlassian.servicedesk:basic-service-desk-project
  • IT Service Desk: com.atlassian.servicedesk:itil-v2-service-desk-project
  • Customer Service: com.atlassian.servicedesk:customer-service-desk-project
0 votes
Alex Suslin
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.
April 7, 2016

It would be much easier if you check the returning error.

 

According to your post data, you missed: key property that is obligatory.

 

P.S. I wish I knew what can we put into projectTypeKey and projectTeplateKey as well as how to create project without autocreated field schemes and issue type schemes.

Added: I found Valid values for the project type key are "business",  "software", and  "service_desk".

TAGS
AUG Leaders

Atlassian Community Events