Forums

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

Find out templateId

Daniel Hauswirth May 27, 2019

In the question "Can I trigger a template from a link?"  the "templateId" is mentioned to automatically create a ticket with the chosen template. Unfortunately I did not found the "templateId". How can I find out, which templateId my template has?

1 answer

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 29, 2019

Hello Daniel,

Thank you for contacting us about this.

As my colleague Bruno mentioned, you can capture it from the URL when creating a template. The easiest way to do this is by first inserting the Create from Template macro on a page. Once you've inserted the macro on a page, publish the page. Then, right-click the button, and select Copy Link Address. Paste this, and you will see it includes the templateID:

http://localhost:#####/####?templateId=884737&spaceKey=KEY&newSpaceKey=KEY

A second option would be to obtain the templateID directly from the database:

select * from pagetemplates;

This will provide you with a list of all of your page templates, and the templateid field is there in the first column labeled templateid.

I hope that helps! Let me know if you have any questions.

Regards,

Shannon

Daniel Hauswirth May 31, 2019

Hallo Shannon

Thank you for your answer. It looks like I confused between Confluence and Jira. I'd like to have a direct URL to create a Jira Ticket with a template.

At the moment I have https://jira.example.com/secure/CreateIssueDetails!init.jspa?pid=11100&issuetype=10002 to create a ticket in the project with pid 11100 and with an issue type 10002.

I would like to select the ticket template with &templateid=xxx. Is this possible? How could I find out the ticket template id?

Regards

Daniel

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 6, 2019

Hello Daniel,

Apologies for the delay, as I usually work on Confluence so I just wanted to verify my understanding of how Jira issues are created.

So Jira doesn't use templates, but rather a screen and workflow depending on the issue type you are creating. So you would just need to set the project type and issue type you want to create so you can do this by setting the ID number per the following article:

In Jira you only need to obtain these IDs from Jira by inspecting the URL that is referenced. You can follow the articles below for that:

If you have any trouble at all, I would recommend raising a new question in the Jira collection, and we will gladly be able to assist there.

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events