Skip to end of banner
Go to start of banner

/create

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

Request


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


{
    "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."
}



  • No labels