Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How do I pre-populate a field in a Work Item with two email addresses?

I am struggling to find a way to enter two email addresses in a field that I will hide for a Work Item that upon being "saved" will automatically send an email to two email addresses.  I want the field with the email addresses to be pre-populated and I do not want the person creating a Work Item to go through a list of users and select the two people who need to get a copy of the Work Item.

0 votes



One answer

Permanent link
So if I understand what you want ..
  .... when a work item is saved (do you mean just created, or every single time it is saved)
you want the same 2 email addresses to receive an email
you do not want the creating the work item to select who gets the email
and the same 2 people get the email for every work item?

If so, then I suspect you can write a server-side participant which gets called on the WorkItemSave action that would send 2 emails.  You could hardcode the email addresses in the participant, and even use some amount of logic to determine who to send the emails to (in the case of different people based on the values of one or more attributes).

RTC does provide a MailService for sending emails via participants if the mail service is enabled for that repository.

0 votes

Comments

another option could to be write a Server-side participant to add one or more users to the subscribers of the work item so that then they would fall into normal RTC subscriber notifications.

There is a sample of such a participant in the RTC Extensions Workshop (Lab2).  It allows you to invoke a build on work item status change.  Your build definition can have an email participant that contains your addressee list. 

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,023

Question asked: Aug 27 '14, 9:46 a.m.

Question was seen: 3,316 times

Last updated: Aug 27 '14, 5:13 p.m.

Confirmation Cancel Confirm