Reputation: 5
I'm trying to create a new project with the Youtrack API. And now I want to create a project with a template that I've created by myself on Youtrack. The API have only "scrum" and "kanban" as possible template parameters. Is there a way to create a project with my own template?
I used this API Call from the Youtrack API documentation site: Add a New Project
Thank you for your help.
Upvotes: 0
Views: 470
Reputation: 366
Try passing the name of your template as a parameter:
POST https://username.myjetbrains.com/youtrack/api/admin/projects?fields=name,shortName,id&template=<template_name>
{ "leader": { "login": "root", "id": "24-0" }, "shortName": "MSP", "name": "Project from REST", "description": "Template Project" }
Upvotes: 2