Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Allows a trusted user to Create a project from the specified template.

Request


Info
iconfalse

https://your.jira.url/rest/projecttemplates/1.0/create-templates/create


Parameters

Parameter NameValueDescription
projectKeyStringThe desired project key.
projectNameStringThe desired project name.
templateIdStringThe template id to use.
projectCategoryIdLongThe project category id to use
baseProjectStringThe project id of the project you would like the settings to be copied from
projectLeadStringThe user to make the projectLead. If none passed the current user will be used.


Sample request

curl -u admin:admin -X POST -d @content.txt -H "Content-Type: application/x-www-form-urlencoded" -v http://your.jira.url/rest/projecttemplates/1.0/create-templates/create


Where content.txt contains:

projectKey=MARKETING&projectName=Marketing%20Project&templateId=1&projectCategoryId=-1&baseProject=-1&projectLead=

Sample response


Code Block
languagejs
{
    "hasError": false,
    "name":"Marketing Project",
    "key": "Marketing",
    "general":"General error message if one occurred",
    "browseURL":"/browse/PCFJ",
    "adminURL":"/project-config/PCFJ",
    "extraHTMLFragment":"Extra html to be displayed to end user."
}





Table of Contents