Automation : Send Email Notifications for Specific Updates in Jira Issue View

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.

要約


This article outlines a method for configuring automated email notifications in Jira. It details how to send custom emails specifically for individual fields that have been modified in the issue view using Jira's automation capabilities.

診断

With Automation for Jira, we can use the field value change trigger to monitor field changes and take corresponding actions, such as sending email updates. However, the traditional method does not support sending emails specifically for changed fields. This article addresses that gap.

In this scenario, we focus on three common fields in a Jira issue view: the Description field, the Assignee field, and the Due Date field. We will demonstrate how to monitor each of these fields and send individual email notifications when a change is detected in any of them.

注意

Please note that in this example, we are using the Send Email action. However, you can use other automation actions based on your specific requirements.


ソリューション

  • (info) Please be mindful of fields you would like to monitor while implementing this solution
  • Let us use the following Custom Field for this Example: Description, Assignee , Due Date.
  • Ensure that these fields are present in the Appropriate Edit Issue Screen where the Automation will Monitor For changes

    Setting the Trigger 

    1. Go to Project Settings > Automation > Create Rule 
    2. Select Trigger: Field Value Change 
    3. Add the three fields to monitor: Description, Assignee,Due date 
    4. Select the Change Type and for Which Operation you would like to monitor these fields 

                                 


    Capturing the Change

    1. The smart value fieldchange will help us capture the previous value before the change , regardless of which field was changed. 
    2. After the trigger, we can log the string format of the previous value with the smart value : {{fieldChange.fromString}}
    3. Example below I have change the the description field , and captured the log 
    Use Add Log Action

          
         
          Name of the Field that was Changed 

          1. Here we use the smart value {{fieldchange.field}} 
          2. This smart value currently logs the name without spaces and case recognition 
          3. Here Description field is printed as driscription , Due date as duedate and Assignee as assignee 
          Use Add Log Action


             

         

            IF-ELSE Block 

            1. Here we will run through an IF-Else block to check the name of the field returned by {{fieldChange.field}}.
           2. IF {{fieldchange.field}} contains the word description then we conclude that the description field has changed and Action Accordingly.

                                                                 


          Send Email / Add Comment Action 

          1. Based on the above satisfaction of the IF Block , we can Send an Email or Add a Comment
          2. After the above Select Send Email Action and add the following content 
          3. Or Select a Comment Action and add the following content   

     Description has changed 
     Old Description : {{fieldChange.from}}
     New Description : {{issue.Description}}

                 


           4. Further , you could continue the If-else block to check for Assignee field and Due Date field in the similar manner as above.......





  • Please be mindful of the Automation Usage limits when using this solution : How is Automation Usage Calculated?
  • To allow one rule to activate another - you also need to set this in the Rule Details section - ensure the checkbox "Allow rule trigger", "Check to allow other rule actions to trigger this rule. Only enable this if you need this rule to execute in response to another rule" is checked.



最終更新日 2024 年 11 月 22 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.