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?
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.