Is there any way I can customize RTC Build email notifications ?
![]()
R Z (127●34●53)
| asked Dec 14 '22, 4:08 a.m.
edited Jan 05 '23, 11:07 a.m. by David Lafreniere (4.8k●7) Is there any way I can customize RTC Build email notifications ?
I want to include some notes and hyperlink to build notifications.
Currently, I don't see a way to customize the view on ver 6.0.6.
If there are any options, please let me know.
Thanks in advance.
|
2 answers
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Jan 05 '23, 3:01 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jan 05 '23, 3:01 a.m. As far as I can see, there is no way to do this. |
![]()
David Lafreniere (4.8k●7)
| answered Jan 05 '23, 11:07 a.m.
FORUM MODERATOR / JAZZ DEVELOPER edited Jan 05 '23, 11:09 a.m. There is no out-of-the-box way of adding custom text content to the regular build notification emails.
If this is really needed, you can write your own server side plugins or client(build side) contributions to achieve this.
Ex: You can write a plugin that can be registered with your server that will run an async task periodically to scan for completed builds and send the relevant emails out (yes there will be two emails per build, but perhaps better than nothing to get custom emails). This is how the out-of-the-box build email notifications are sent. If this class is visible in the EWM server SDK, see the implementation for com.ibm.team.build.internal.service.notification.BuildNotificationTask. This is essentially a class that extends com.ibm.team.repository.service.async.AbstractAutoScheduledTask, and queries for particular ChangeEvents which represent completed builds. ex:
You can then use Foundation APIs to send emails using an example like:
There are other jazz forum topics that give up to date pointers (to articles/wikis) on how to contribute server side extensions using the public SDK/APIs (I don't have these links handy at the moment, but it should be easy to find if this is the direction you want to persue). You could also have your build scripts (ex: Ant tasks) send out the appropriate emails, or contribute post-build participants code to a build definition (build public API also supports hooking in custom code for pre/build/post-build callbacks) (however it's probably easier to go with the async serverside task to do this, since this is what is already implemented). Comments ![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
An example of such an extension: https://rsjazz.wordpress.com/2015/10/16/due-date-notifier-an-asynchronous-task-example/ |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.