Question & Answer
Question
Can I get email notifications using the doors_cs_process57 lifecycle?
Answer
This is possible, however some steps need to be taken to setup email notifications.
- Copy the notifications_template folder from C:\Program Files\IBM\Rational\Change\5.2\jetty\webapps\change\WEB-INF\package_templates\dev_template\wsconfig\templates\pt\forms
and paste it in
C:\Program Files\IBM\Rational\Change\5.2\jetty\webapps\change\WEB-INF\package_templates\doors_cs_template57\wsconfig\templates\pt\forms - Rename 'entered2assigned.resolver_html.tmpl' to 'rcr_created2rcr_assigned.assignee_html.tmpl'
- Rename assigned.txt to rcr_assigned.txt
- Rename assigned.html to rcr_assigned.html
- Modify the templates to ensure the correct attributes are being called inside of the template files.
- Modify the attributes in rcr_created2rcr_assigned.assignee_html.tmpl
From:
<script> 'problem_number|crstatus|problem_synopsis|severity|priority|request_type|product_name|submitter|resolver|_COMMENTS'
%&mimeStart()% %&mimeInsertText(assigned.txt)% %&mimeEndText()% %&mimeInsertHTML(assigned.html)% %&mimeEndHTML()% %&mimeProcessImages()% %&mimeEnd()% </script>
To:
<script>
'problem_number|crstatus|problem_synopsis|release_priority|product_name|submitter|assignee|_COMMENTS', $_bt_dict)%
%&mimeStart()% %&mimeInsertText(rcr_assigned.txt)% %&mimeEndText()% %&mimeInsertHTML(rcr_assigned.html)% %&mimeEndHTML()% %&mimeProcessImages()% %&mimeEnd()%
</script>
- Modify the rcr_assigned.txt to include the following:
From:
<script>
CR %problem_number% was set to %crstatus% for %resolver%.
Synopsis: %problem_synopsis%
Severity/priority: %severity%_%priority%
CR Type: %request_type%
Product/Subsys: %product_name% - %product_subsys%
Comments: %_COMMENTS%
</script>
To:
<script>
CR %problem_number% was set to %crstatus% for %assignee%.
Synopsis: %problem_synopsis%
priority: %release_priority%
Product/Subsys: %product_name% - %product_subsys%
Comments: %_COMMENTS%
</script>
- Modify the rcr_assigned.html file and removed the following attributes:
<script>
<tr>
<td width="25%%" valign="top" align="right" nowrap><b>Priority:</b></td>
<td width="75%%">%priority%</td>
</tr>
<tr class="zebra">
<td width="25%%" valign="top" align="right" nowrap><b>Release:</b></td>
<td width="75%%">%release%</td>
</tr>
<tr>
<td width="25%%" valign="top" align="right" nowrap><b>Severity:</b></td>
<td width="75%%">%severity%</td>
</tr>
</script>
Add the following attribute:
<script>
<tr>
<td width="25%%" valign="top" align="right" nowrap><b>Priority:</b></td>
<td width="75%%">%release_priority%</td>
</tr>
</script>
- Add the following line to the Post Condition of the rcr_created2rcr_assigned transitions of the doors_cs_process57.xml file:
async:perl transition_notice.pl notification_templates
- Update and save the changes to the doors_cs_process57.xml file.
- Recreate the process package using the updated package template.
- After the updated process package has been installed, email notifications should be sent.
[{"Product":{"code":"SSYQQ2","label":"Rational Change"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"5.3.0.2;5.3.0.1;5.3;5.2.0.5;5.2.0.4;5.2.0.3;5.2.0.2;5.2.0.1;5.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21567720