Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Current »

We're actively developing to enhance your experience!
Dive into our roadmap for a sneak peek at future features. Missing something? Let us know! Your input fuels our progress πŸš€

Easily integrate Smart Templates with Automation for Jira and other third-party tools ⚑️

Contents πŸ‘‡πŸΌ

With a Webhook link πŸ”—, you can trigger issue creation from a template using Jira Automation or third-party tools like Postman. It works with simple templates without variables, and you can also send different types of variables in the request body to enhance your processes even further πŸš€.

  1. Open the edit page of the template you want to create a webhook link for.

  2. Navigate to the Automation tab.

  3. Click the Generate webhook button.

Screenshot 2024-08-28 at 19.21.45.png
  1. That’s it! Just click the Copy button to grab the link, then paste it into Jira Automation or any other tool where you want to trigger issue creation from the template.

☝🏼NOTE: This method is ideal for templates without variables. Not using variables yet? Find more information about them here β†’ Variables

  1. Grab a Webhook link of a template

  2. Execute web request using POST method (no need to add request body) like below in Postman

Screenshot 2024-08-22 at 19.06.49.png

OR

Setup Jira Automation which will trigger issues creation from your template:

  1. Go to your Jira project β†’ Navigate to Project Settings in the left-hand sidebar β†’
    Select Automation from the options.

  2. Click on Create Rule to start setting up a new automation rule β†’ Choose a Trigger for your rule based on when you want the webhook to be called

image-20240828-124133.png
  1. After selecting your trigger, click on THEN: Add an Action β†’ Select Send Web Request from the list of actions β†’ In the Webhook URL field, paste the webhook link that you generated for the template

Screenshot 2024-08-28 at 14.42.19.png

☝🏼NOTE: Use the HTTP POST method and leave the Web Request Body empty. Also, keep the Headers section empty.

  1. Add any additional Conditions or Actions based on your needs (optional)

  2. Give your rule a Name and publish it β†’ click Turn it on to activate the rule.

Screenshot 2024-08-28 at 15.26.37.png

☝🏼NOTE: The reporter of issues created via the webhook link will be the person who generated the link. You can always find all issues created from your template on the History tab on edit page.

image-20240828-132916.png

When triggering a Webhook, you can customize the issues created by passing variables in the request body using JSON format. Currently, Text Variables are supported, and in the future, additional variable types such as Select List (Single choice), Select List (Multiple choices), and User Picker will be available. More about Variables can be found here β†’ Variables.

  1. Go to the Edit page of the template that has the variables configured

    Example of a Variable:

variable

And the Variable usages:

Screenshot 2024-08-28 at 17.55.05.png

  1. Click the Generate webhook button on the Automation tab β†’ Copy the generated webhook link.

image-20240828-152104.png
  1. Open your Jira project and go to Project Settings β†’ Select Automation from the sidebar β†’ Click on Create Rule to start a new automation rule β†’ Choose the appropriate Trigger for your automation rule

  2. After setting the trigger, click on THEN: Add an Action β†’ Select Send Web Request as the action β†’ Paste the copied webhook link into the Webhook URL field

  3. Select HTTP Method POST β†’ and pick Custom data in the Web request body field

Screenshot 2024-08-28 at 17.27.05.png
  1. In the Custom data field, paste the pairs of key : value using JSON format to customize your issues

Screenshot 2024-08-28 at 17.57.23.png
  1. Give your rule a Name and publish it β†’ click Turn it on to activate the rule.

  2. Check the created issues to confirm that the template has been applied as expected and that the variables have been correctly populated.

Screenshot 2024-08-28 at 18.02.17.png

πŸ’‘HINT: You can pass more than one pair of variable:value in the same request body. It could be used in case you have more than 1 variable in your template. See example below.

{
"Day" : "1st",
"Month" : "September",
"Year" : "2030"
}

Smart Templates allow you to create customizable Jira issues by passing variables through the Webhook body. You can even pass Smart Values as the input for these template variables, enabling dynamic and context-specific issue creation based on real-time data.

  1. Let's look at this template, where only variables have been added to the Summary and Description fields:

image-20240828-165849.png
  1. Your Webhook request body can include Smart Values that extract the Summary and Description from the source task and pass them as values to the corresponding variables in the template via the webhook body.

  1. See it in JSON format below:

{
"summary" : "Review and Finalize API Documentation: {{issue.summary}}",
"description" : "This task is based on the completed documentation task:\n\n*Original Summary:* {{issue.summary}}\n*Original Description:* {{issue.description}}\n\n*Action Required:*\n- Review the completed documentation.\n- Ensure all necessary details are included and correct.\n- Finalize and prepare for release.\n\n*Reference Task:* {{issue.key}}"
}
  1. Next, trigger the Automation rule for the task:

image-20240828-170827.png
  1. Here’s the result we get:

Screenshot 2024-08-28 at 19.10.26.png

☝🏼NOTE: You can pass any Jira Smart Values that work with Text variables and are compatible with Text fields.

☝🏼NOTE: Removing or regenerating the webhook link will disrupt any existing automations or integrations that rely on it. Ensure you update all affected systems with the new link to prevent failures in issue creation or other automated processes.


πŸ“« Don’t hesitate to get in touch with us for any questions or feature requests!

  • No labels