---
title: "Add a canned response based on a label"
canonical: "https://support.appfire.com/space/CSOT/68752289/Add%20a%20canned%20response%20based%20on%20a%20label"
format: markdown
---
# Steps

<span style="color: #333333">The following steps demonstrate how to configure Create on Transition for Jira to add a canned response based on a label when creating an issue.</span>

|  |  |  |
| --- | --- | --- |
| ![image](media://5a3fb440-1819-444d-ba7e-f5f2d29cca93) | ## Step 1<br>As a Jira Administrator or Workflow Administrator:<br>1. Click the **Cog** icon to open the *Settings* menu and select **Issues**
2. Click **Workflows**
3. Navigate to your workflow and edit your workflow to create a draft version
4. Select step 1
5. Select the *Create* transition
6. Select the *Post Functions* tab.
7. Click* Add post function*
8. Select *Update issues (Bob Swift)* post function and add | ![image](media://9be9d054-5233-4d97-8e19-622521cd9ae0) |
| ![image](media://0bb6837f-9146-4804-ab22-7af4b8bab7b9) | ## Step 2<br>Within the Issue Fields section:<br>1. Select the *Comments & attachments* tab
2. In the *Add comment*, enter the required comment, in this instance: "*Thanks for your request for the evaluation license promo code. We’re working on it and will get back to you soon.*" | ![image](media://35e13858-ef63-401d-9fea-31da7a0c9ae3) |
| ![image](media://a0a548c6-b7b9-4c19-91c7-f9cd376a933e) | ## Step 3<br>1. Select the *Conditions & Configuration* tab.
2. Enter "%original_labels%" in the *Condition 1* field.
3. Enter "license" in the *Regular expression pattern* field.
4. Select *Exact *matching condition, so we only add a comment  
when the label is "license".
5. Click the **Add** button to save your changes. | ![image](media://25c8f6d4-edf1-4fad-b486-1f10bcaa671e) |
| ![image](media://a7cc336c-8742-4fba-8022-7eb99697adcd) | Step 4<br>1. Ensure to publish your workflow. It is always recommended to save a backup of the previous workflow when prompted.
2. Create an issue with a label 'license'
3. Validate the newly created issue to ensure that the comment is added |  |