Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do i get Project Template Key using rest api ?

Hi Guys,

How do i get the Project Template Key from the Rest API.

1 answer

0 votes
DPK J Community Leader May 01, 2020

@Pradeep BudharapuI'm afraid that there is not rest API to fetch Project Template Key.

But the set of available is limited and depend upon feature that you have installed/enabled on your cloud site.

Here is list of available templates, for each feature type.

businesscom.atlassian.jira-core-project-templates:jira-core-simplified-content-management, com.atlassian.jira-core-project-templates:jira-core-simplified-document-approval, com.atlassian.jira-core-project-templates:jira-core-simplified-lead-tracking, com.atlassian.jira-core-project-templates:jira-core-simplified-process-control, com.atlassian.jira-core-project-templates:jira-core-simplified-procurement, com.atlassian.jira-core-project-templates:jira-core-simplified-project-management, com.atlassian.jira-core-project-templates:jira-core-simplified-recruitment, com.atlassian.jira-core-project-templates:jira-core-simplified-task-tracking
service_deskcom.atlassian.servicedesk:simplified-it-service-desk, com.atlassian.servicedesk:simplified-internal-service-desk, com.atlassian.servicedesk:simplified-external-service-desk
softwarecom.pyxis.greenhopper.jira:gh-simplified-agility-kanban, com.pyxis.greenhopper.jira:gh-simplified-agility-scrum, com.pyxis.greenhopper.jira:gh-simplified-basic, com.pyxis.greenhopper.jira:gh-simplified-kanban-classic, com.pyxis.greenhopper.jira:gh-simplified-scrum-classic

 

Also please visit this page for more details - https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-project-post

Just imagine if i am calling get projects API and i got 100 projects .
Now i want segregate based on project template so how do i know from out of 100 projects which projects belongs to which type of Project Template (Project Template Key)

DPK J Community Leader May 02, 2020

I don't think that is possible.

Project created doesn't store Project Template Key information with it.

Yes, you're right, the project template is used as, well, a template - it is only used during project creation, and it is not stored with the project because it's of no use after a project has been created.

Like DPK J likes this

Then how the Jira is differentiating the Project to Project on what basis ..?????? 

On the unique project key.e

No, My expectation is Project to Project different means template difference , if it is not storing any where project template type how it is differentiating and how it is loading project.

DPK J Community Leader May 03, 2020

@Pradeep BudharapuProject templates are used to define structure on project, take it as a meta of meta for project. Once project meta is defined (project created) all information from project template is inside project meta, and there is no need for project template now.

Project type like, 'business, software, service-desk' are still stored in project.

Like Nic Brough _Adaptavist_ likes this

Jira differentiates between projects on the project key. 

Every project has has a set of configurations (meta data) which determines how it works.  The template is used to create a set of configurations for the project upon creation, these are then used by the project and define how it works.  You can change these configurations, and they can be shared between projects.

The template used to create a project is not recorded - it's useless after the project is created because an admin can (and often does) change the configuration.

Like DPK J likes this

@Nic Brough _Adaptavist_ 

Hi, when I create a jira project by rest api, how can it share the same configurations with another project during creation? 

It seems that there is no such parameter like 'share' or 'template'. 

I cannot find that in the API either, I don't think it's there (yet)

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you