Java Code for deliver operation is performed on source code?
![]() Hi,
Is it feasible to send a mail notification when a deliver operation is performed in Source Code. How can I achieve this?
I mean how can I find the delivered change set to send the Email Notification?
Thanks and Regards,
Princi Verma
|
One answer
![]()
Ralph Schoon (63.3k●3●36●46)
| answered May 24 '17, 8:57 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Like with any of these requests, you would likely have to create a custom server extension. Like a follow up action or something driven by something else such as an asynchronous task or something event driven. You would use the operation ID explained in https://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/ . That is a pre condition, but the code is pretty much the same and the "Getting started" explains a workshop which is for a follow up action. Comments Thanks Ralph !
I will try the above solution.
The server Mail API is here: https://rsjazz.wordpress.com/2015/10/16/due-date-notifier-an-asynchronous-task-example/ Ok thanks ! Hi Ralph,
In email notification, when I am using getMailService() method then its showing compilation error, the method is undefined for the ImplClass.
So is there dependency issue, because it comes under 'com.ibm.team.repository.service.internal.MailerService' and I have added 'com.ibm.team.repository.service'.
Please suggest.
Thanks and Regards,
Princi Verma
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
My suggestion would be for you to start reading the posts and follow the advice on how to get started with this whole stuff, which I have in all of the blog posts to help the newbies. Plus, the downloadable code I provide has worked for me. Finally, you will have to find the imports you need on your own and it is actually not that complicated and you can look into the downloadable code in most of my posts too. Hi Ralph,
The problem is resolved as I have added 'javamail-1.4.5' jars in the build path.
As well as interface= "com.ibm.team.repository.service.MailSender", required service in MANIFEST.MF prerequisites.
Thanks and Regards,
Princi Verma
showing 5 of 6
show 1 more comments
|
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.