Date: Fri, 29 Mar 2024 02:51:53 -0400 (EDT) Message-ID: <1911792467.3775.1711695113798@wiki.jirassimo.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3774_530187583.1711695113778" ------=_Part_3774_530187583.1711695113778 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Question: How to trigger a email when valu= e of custom field is updated?
Answer: Create a notification as shown in the scre= enshot below:
Add message template similar to the example below:
#foreach= ($item in $issue.lastchange.items) =09#if ($item.fieldId =3D=3D "CAB" and $item.fromString =3D=3D "value befor= e" and $item.toString =3D=3D "value after") =09=09<pre> =09=09Hi there, =09=09User $issue.lastchange.author.displayName has made some changes to &l= t;a href=3D"$context.baseurl/browse/$issue.key">$issue.key</a>: =09=09<table border=3D"1"> =09 <tr> =09 <th><b>Field</b></th> =09<th><b>Old value</b></th> =09 <th><b>New value</b></th> =09</tr> =09 #foreach ($item in $issue.lastchange.items) <tr> <td>$!item.field</td> <td>$!item.fromString</td> <td>$!item.toString</td> </tr> =09#end =09=09</table> =09=09Best, =09=09Raley =09=09</pre> =09#end #end
Make a note of the code in line 2 : it shows how to check the customfiel= d value against before and after.