Creating jira project using jira rest api

Varsha Kumari May 17, 2018

Creating jira project using jira rest api .

I am able to create the Business type project in jira by using below

ProjectTypeKey : "business";
ProjectTemplateKey : "com.atlassian.jira-core-project-templates:jira-core-project-management";

 

I also tried to create Scrum type project with below ,but getting error ,its not created the Scrum project 

ProjectTypeKey : "Scrum";

ProjectTemplateKey : com.pyxis.greenhopper.jira:gh-scrum-template

 

Please help me in creation Scrum type project

3 answers

0 votes
Varsha Kumari May 17, 2018

Thanks a lot Ravi.

I am able to create the Scrum project using Jira rest api.

I have 1 more query

One of my Jira instance version is 6.4.10 . In that instance from JIRA UI its not giving the option to create business type project .

Do I need to add any plugin or and configuration setting is required ? Please let me know

Ravi Varma
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.
May 17, 2018

Hi Varsha Kumari,

Please note that projectType has been introduced from JIRA 7.x.  You should not be looking for that feature in JIRA 6.x

Typical installation for JIRA 6.x has the following three options (Refer below image) and they are organized differently  when compared to JIRA 7.x.  Please note that this is JIRA native feature and does not entail installing/configuring any pluginsScreen Shot 2018-05-18 at 11.21.47 AM.png

Refer Atlassian Documentation - https://confluence.atlassian.com/adminjiraserver071/jira-applications-and-project-types-overview-802592214.html

Hope this answers your query.

Regards,

Ravi Varma

0 votes
Varsha Kumari May 17, 2018

I used the below and getting the error

"projectTypeKey": "Scrum",
"projectTemplateKey": "com.pyxis.greenhopper.jira:gh-scrum-template",

{
"errorMessages": [
"An invalid project type was specified. Make sure the project type is available in your JIRA instance. Please talk to your JIRA administrator if you need more help.",
"An invalid project template was specified. Make sure the project template matches the project type you specified."
],
"errors": {}
}

Varsha Kumari May 17, 2018

Jira version : 7.1.9

From Jira UI while creating the project its giving the option to create Scrum type project.

But with rest api giving error

Ravi Varma
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.
May 17, 2018

Hi Varsha Kumari,

Please use "projectTypeKey": "software"

Refer Atlassian JIRA Ticket - https://jira.atlassian.com/browse/JRASERVER-59658

Refer Community Ticket - https://community.atlassian.com/t5/Answers-Developer-Questions/JIRA-API-7-1-0-Create-Project/qaq-p/551444

Let me know if you still have problems.

Regards,

Ravi Varma

Like Raktim Biswas likes this
G V Shabareesh November 5, 2018

@Varsha Kumari can u please send me the code of creating a scrum template of creating a new project i am getting error.. it was saying that the "projectTypeKey" is not defined or unexpected keyword it is saying. can u please send me. and @Ravi Varma

0 votes
Alexey Matveev
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.
May 17, 2018

What error do you have? What is your Jira version?

Suggest an answer

Log in or Sign up to answer