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?
Community moderators have prevented the ability to post new answers.
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
Thanks Jenifer
In addition to that,
Following is the format if you are creating custom templates
groupId.artifactId:key_of_the_project_blue_print
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Update for JIRA Service Desk 3.10.0 on JIRA 7.7.0:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.