Snippets

Adaptavist Jira Cloud Send Notification Post Function Additional Actions To Dynamically Populate the Subject

Created by Kristian Walker last modified
1
2
3
4
5
6
7
8
9
/*
 * "This line of code can be added to the Additioanl Code box in the Send Notification Post Function on Jira Cloud to dynamically populate the subject of the notification based on values from the issue. 
 * All right, title and interest in this code snippet shall remain the exclusive intellectual property of Adaptavist Group Ltd and its affiliates. Customers with a valid ScriptRunner 
 * license shall be granted a  non-exclusive, non-transferable, freely revocable right to use this code snippet only within their own instance of Atlassian products. This licensing notice cannot be removed
 * or amended and must be included in any circumstances where the code snippet is shared by You or a third party." 
 */

// Add this line of additional code to overtide the default subject specified in the Subject box with a custom subject which is dynamically generated. 
notification.subject = "The issue with the key of ${issue.key} has been updated with the summary of ${issue.fields.summary}"

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.