RTC can hook e-mail notifications to specific actions on the workflow?
Accepted answer
These extensions can act on any data available in the work item.
Comments
That sound a good idea! I will try that way, if you can share any part any example how they made I will appreciate.
Thank you!!
All i have is here: https://rsjazz.wordpress.com/?s=participant if you follow the suggested reading, you should be able to find the e-mail service and be able to use it.
One other answer
Comments
Yeah I know but coding one template is not enough when you want to give specific directions to specific people, depending of the situation od the work item, if code that will be a huge coding content with a lot of conditionals, and the distribution list should also be different depending of the situation of the work items, do you know any example? for this?
well, i hear ya,,
here is a tiny script I built.. if one of the users is the special id (this template gets called for each subscriber one at a time), the generated message is different (this supported a lightweight integration with another
system, where only the last comment matters, and a special message format was required)
if (${recipient}=="special")
if(${workItem.get("special_id")} ne "")
CCN:${workItem.get("special_id")}
Internal ONLY
NOCHANGE
foreach($comment in ${workItem.comments.mostRecentFirst.takeFirst(1)})
${comment.description}
end
end
else
Web UI: ${workItem.URL}
Id: ${workItem.identifier}
Type: ${workItem.type}
Summary: ${workItem.title}
if(${workItem.teamArea})
Team Area: ${workItem.teamArea} / ${workItem.projectArea}
else
Project Area: ${workItem.projectArea}
end
Filed Against: ${workItem.categoryName}
Status: ${workItem.state}
${change.contributor.name}#if(${change.contributor.emailAddress}) <${change.contributor.emailAddress}>#end changed on ${change.date.fullDate} at ${change.date.fullTime}:
${change.description}
You are receiving this mail because you are ${recipientRelation.description} ${recipientRelation.abbreviation} of this work item.
end
I see, thank you for share your script, keeping in mind that just the subscribers will get the generic template content.
Again. The RTC design will call the script once for each subscriber. There is no generic call once, you decide what to do for everyone function
and to clarify, ONLY for the subscribers that have NOT disabled notifications in their user profile email config.