Automate Issue Creation
Templating.app integrates seamlessly with Jira Automation, enabling you to apply issue templates automatically based on specific triggers. This helps maintain consistency and standardization across projects. This guide will walk you through activating the automation feature, generating API tokens, and configuring Jira Automation rules to work with Templating.app.
Activate Automation in Templating.app
Before setting up your automation rules, you need to enable the feature and get a few important details.
- Activate Feature in Templating.app
- Navigate to the configuration page.
- Locate the WebTrigger URL and API token.
- Both are needed to configure Jira Automation rules using Templating.app features.
- Generate API Token
- Click on the “Enable Automations” button to generate the API token.
- Manage Automations
- To disable automations, click on the designated button.
- To re-enable them, click the button again.
- API Token Management
- Disabling/enabling automations does not change the API token.
- To change the API token, click on “Generate new API token” and follow the instructions.
See how it works
Setting up Jira Automation Rules
Basics
Before setting up your automation, you’ll need to gather a few key elements:
- Prepare the Webtrigger URL and API Token:
- Navigate to the Templating.app Configuration page (see above).
- Copy the Webtrigger URL and API Token. You’ll need these to set up the automation.
- Find the Template ID
- Open the Issue Library in Templating.app.
- Select the issue template you want to automate.
- In the URL, the Template ID is the long string after the last /.
- Example:
10008-bdc02d68-8f1a-4e2b-8f99-6650d1b6ee8a
- Example:
- Find the Project ID (Optional): If you want to apply the template to a specific project:
- Open the Issue Library and select a template linked to the project.
- The Project ID is the first part of the long string in the URL after the last /.
- Example:
10008
in10008-bdc02d68-8f1a-4e2b-8f99-6650d1b6ee8a
- Example:
- Alternative Method: For another way to find the Project ID, check out this guide.
- Define Dynamic Variables (Optional): You can dynamically set variables like “Customer Name” using Jira Automation.
- Ensure the variable isset up correctly in your template to match the automation input.
Configure Automation Rule
- Create a New Automation:
- Go to the Jira Automation screen and click Create Rule.
- Set a Trigger:
- Choose the event that will trigger the automation, such as project creation or a scheduled time.
- Configure the Web Request Action:
- Select Web Request as the action type.
- Enter the Webtrigger URL from Templating.app.
- In the Authorization Header, add the API token from Templating.app.
- Choose Custom Data and paste your automation rule code.
Example Use Cases
Multi-Project Management
- Use Case: Automatically apply an issue template when a new project is created. - Perfect for: Standardizing tasks for customer projects. - Trigger: Project Created
By creating an issue template that includes all your standard project tasks, you can automate task creation when a new customer project is set up. This helps ensure consistency, saves time, and lets you focus on getting started right away.
With this example, you can even dynamically set the project name as a variable for the customer name within your Issue Template.
Code
Note Make sure that your Issue Template includes a variable called “Customer Name”.
See how it works
Time-Based Task Creation
Do you have tasks that need to be created regularly, like quarterly reports or monthly reviews? Instead of manually setting them up each time, you can automate the process with Jira Automations and Templating.app. By applying an issue template on a specific date, you ensure consistency and save valuable time for more important work.
Code
Release Management
Managing releases can be complex, but automating the creation of related tasks can make it easier. With Jira Automations and Templating.app, you can apply an issue template whenever a new version is created. This helps standardize your release process, ensuring that all necessary steps are automatically generated and nothing gets overlooked.
Code
Note Make sure that your Issue Template includes a variable called “Version Name”.