Versions Compared
compared with
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 | ||
---|---|---|
| ||
https://your.jira.url/rest/projecttemplates/1.0/create-templates/create |
Parameters
Parameter Name | Value | Description |
---|---|---|
projectKey | String | The desired project key. |
projectName | String | The desired project name. |
templateId | String | The template id to use. |
projectCategoryId | Long | The project category id to use |
baseProject | String | The project id of the project you would like the settings to be copied from |
projectLead | String | The 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 | ||
---|---|---|
| ||
{ "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 |
---|