How to create Email notification previous priority and present priority for task

snow jagan
Tera Contributor

For Priority it should show if its raised or lowered depending on the previous task state.

for example:

SCTASK# followed by Task short description

“Priority raised to:” or “Priority lowered to:” followed by the Priority as shown above

15 REPLIES 15

Hello Shyam,

 

Do you know anything about this?

Hello @Renu4  ,

 

Sorry for the delay, can I please have screen snaps to understand this  and your expectation on the Requirement 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

Hello Shyam,

Thank you for your response.

Well i am trying to display old priority and new priority in email template when priority is changed in incident.But i am getting Sysid instead of old priority munber.

i have attached all the screen shots kindly guide me.

Regards,

Renu

Hi @Renu4  ,

Here is the Solution , Tried in my PDI and works fine 

 

1. Create an String field say as - Previous state 

2. Hide this from Form view, (better to write an UI policy to hide completely )

3. Write an BR to store the Previous Priority into the newly created field 

 

BR - Before Insert/update 

Condition - Priority changes 

current.u_previous_priority=previous.priority;

Now in the Email Script amend the Script as below 

 template.print("The Priority of this catalog Task has been changed from Priority:" + current.u_previous_priority + " to Priority:" + current.priority);

 

implement this and let me know if you see any Issues 

 

Regards,

Shyamkumar

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

Hello Shyam,

Thank you so much this worked absolutely fine.

Is there a way that i can keep the priority fonts bold?

i mean can i bring in bold tag or strong tag in here: 

 template.print("The Priority of this catalog Task has been changed from Priority:" + current.u_previous_priority + " to Priority:" + current.priority);