Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic SYNERGY (steve huntington)
Decrease font size
Increase font size
Topic Title: Email Notifications when a transition is completed
Topic Summary: Email Notifications
Created On: 12-Oct-2006 20:15
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Jamey McCarty, on Wednesday, November 8, 2006 11:03 PM

Answer:
Thanks for the information. 

I finally worked out the solution with technical support.

Here is the information I received from technical support:

perl EmailNotification.pl -toattr resolverfficeffice" />>>

>As far as your other request to send email to some more users, you can use - touser parameter to send email.>>

>For Example: if you want to send email to your build manager as well as ChangeAdmin the post trigger should have their information as follows:>>

>perl EmailNotification.pl -toattr resolver -touser ChangeAdmin,BuildManager>>

>Note: - The ChangeAdmin and BuildManger user ID's should be in Telelogic Directory server.>>

>These are some details I though to share with you about Emailnotification.pl file.>>

>The script is to be used as a Post-Conditions trigger script. >>

>perl EmailNotification.pl [-toattr attrnames] [-touser usernames] [-toaddr addresses] [-nologin] [-bodyaddr attrnames] [-crtype crstring] >>
>toattr -toattr attrname[,attrname[,...]] >>
Comma separated list of attributes that contain names of CS users to be included into the recipient list. Attributes that do not contain a value are >>
omitted as useras are that have no e-mail adress specified in their profile. >>
>touser -touser username[,username[,...]] >>
Comma separated list of CS user names to be included into the recipient list. Users that do not have an e-mail adress specified in their profile are omitted. >>
>toaddr -toaddr address[,address[,...]] >>
Comma separated list of e-mail addreses to be included into the recipient list. >>
>nologin -nologin >>
Flag to suppress an e-mail to the current logged in user. >>
>bodyattr -bodyattr attrname[,attrname[,...]] >>
Comma separated list of attributes to be included in the body of the e-mail. The default is  - boddattr problem_number,crstatus,problem_synopsis,problem_description.  >>
>crtype -crtype crstring >>
Term to be used in the e-mail to refer to the CR. The default is -crtype CR. >>
>subject -subject string >>
String to be used instead of Default Subject string. This can pass in %s characters as per the example in TEXT_SUBJECTDEFAULT. >>
>header1 -header1 string >>
String to be used on first line of Email Text. This replaces the TEXT_BODYHEADER_01DEFAULT. It also uses same %s characters as per the example. >>
>header2 -header2 string >>
String to be used on first line of Email Text. This replaces the TEXT_BODYHEADER_02DEFAULT. It also uses same %s characters as per the example.>>
 12-Oct-2006 20:15
User is offline View Users Profile Print this message


Jamey McCarty

Posts: 8
Joined: 9-Mar-2006

How can I set up email notifications to select users when a change request is transitioned?  any help will be appreciated.

-------------------------
jmccarty
Report this to a Moderator Report this to a Moderator
 26-Oct-2006 15:03
User is offline View Users Profile Print this message


michael Barnes

Posts: 85
Joined: 12-Nov-2003

Use Perl trigger files on the transition.

Sample perl files are in directory cs_app\webapps\synergy\WEB-INF\wsconfig\triggers of the Change installation.
Report this to a Moderator Report this to a Moderator
 7-Nov-2006 21:48
User is offline View Users Profile Print this message


Jamey McCarty

Posts: 8
Joined: 9-Mar-2006

I received the following perl trigger script from technical support:

perl EmailNotification.pl [-toattr attrnames] [-touser usernames] [-toaddr addresses] [-nologin] [-bodyattr attrnames] [-crtype crstring]

Does anyone know if this needs to be modified? For example does [-toattr attrnames] need to be modified with an attribute name like [-toattr resolver]

I have tried both ways and can not seem to get the email notifcation to work each time I tried I got the following EmailNotification: error: Invalid argument '[-toattr'.

Any help will be greatly appreciated.


-------------------------
jmccarty
Report this to a Moderator Report this to a Moderator
 8-Nov-2006 15:33
User is offline View Users Profile Print this message


michael Barnes

Posts: 85
Joined: 12-Nov-2003

The braces '[]' probably mean "this is optional". If you want to use the attribute then omit the []; if you don't want to use the attribute, then omit the [] and everything inside.
Report this to a Moderator Report this to a Moderator
 8-Nov-2006 23:03
User is offline View Users Profile Print this message


Jamey McCarty

Posts: 8
Joined: 9-Mar-2006

Answer Answer
Thanks for the information. 

I finally worked out the solution with technical support.

Here is the information I received from technical support:

perl EmailNotification.pl -toattr resolverfficeffice" />>>

>As far as your other request to send email to some more users, you can use - touser parameter to send email.>>

>For Example: if you want to send email to your build manager as well as ChangeAdmin the post trigger should have their information as follows:>>

>perl EmailNotification.pl -toattr resolver -touser ChangeAdmin,BuildManager>>

>Note: - The ChangeAdmin and BuildManger user ID's should be in Telelogic Directory server.>>

>These are some details I though to share with you about Emailnotification.pl file.>>

>The script is to be used as a Post-Conditions trigger script. >>

>perl EmailNotification.pl [-toattr attrnames] [-touser usernames] [-toaddr addresses] [-nologin] [-bodyaddr attrnames] [-crtype crstring] >>
>toattr -toattr attrname[,attrname[,...]] >>
Comma separated list of attributes that contain names of CS users to be included into the recipient list. Attributes that do not contain a value are >>
omitted as useras are that have no e-mail adress specified in their profile. >>
>touser -touser username[,username[,...]] >>
Comma separated list of CS user names to be included into the recipient list. Users that do not have an e-mail adress specified in their profile are omitted. >>
>toaddr -toaddr address[,address[,...]] >>
Comma separated list of e-mail addreses to be included into the recipient list. >>
>nologin -nologin >>
Flag to suppress an e-mail to the current logged in user. >>
>bodyattr -bodyattr attrname[,attrname[,...]] >>
Comma separated list of attributes to be included in the body of the e-mail. The default is  - boddattr problem_number,crstatus,problem_synopsis,problem_description.  >>
>crtype -crtype crstring >>
Term to be used in the e-mail to refer to the CR. The default is -crtype CR. >>
>subject -subject string >>
String to be used instead of Default Subject string. This can pass in %s characters as per the example in TEXT_SUBJECTDEFAULT. >>
>header1 -header1 string >>
String to be used on first line of Email Text. This replaces the TEXT_BODYHEADER_01DEFAULT. It also uses same %s characters as per the example. >>
>header2 -header2 string >>
String to be used on first line of Email Text. This replaces the TEXT_BODYHEADER_02DEFAULT. It also uses same %s characters as per the example.>>


-------------------------
jmccarty
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 15:34.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.