Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the project template to company managed in web api

Ben April 21, 2022

I created an automation to create a project when an issue is approved. What I found though is that the template is set as a team managed and I need it to be company managed. Is there a way to accomplish this using the web api?

 

Thanks,

Ben

1 answer

0 votes
Trudy Claspill
Community Champion
April 21, 2022

Can you show us your code?

Ben April 21, 2022

Hi Trudy, There isn't much to the code. I'm simple sending a post to the project api listing the template com.pyxis.greenhopper.jira:gh-simplified-agility-kanban. It creates the project using this body:

{
 "key""TJI45",
 "name""Test Project 45",
 "projectTypeKey":"software",
 "projectTemplateKey""com.pyxis.greenhopper.jira:gh-simplified-agility-kanban",
 "description""Project Test 45",
 "leadAccountId""user id",
 "assigneeType""PROJECT_LEAD",
 "avatarId"19903
 }

 

Ben April 21, 2022

NM folks I ended up realizing that the -classic on the templates indicates the company managed templates. I'm set now. Thank you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events