How do I stop "comments added" notification from firing on requests when the request is closed

curtisr
Kilo Expert

I have a scenario where end users are getting double emails when the last task to a request is closed with a user visible comment. The system is firing off one email for the comment and another for the request being closed complete. Odd thing, the close complete email has the comment from the previous email so it looks like a duplicate. Is there a way to prevent the comment notification from firing when the request is closed? I have tried every status field available in the condition builder to no avail. I am starting to think it will need to do an advanced script, but am not quite sure where to start since anything I can think of would reference the same fields in the condition builder.

I did try a search, but feel that I may be using the wrong criteria .

Thank you in advance!

1 ACCEPTED SOLUTION

curtisr
Kilo Expert

I figured it out! Had to use an advanced script, here is the code I used to stop the comment from firing when the request is closed.



if(current.request_item.request.active == 'true')


  {answer = true;}


else


  {answer = false;}



Seems so simple now that I see it . Thank you all for the input and help.


View solution in original post

6 REPLIES 6

Thank you for the reply Anurag,



I tried that (shot below) and it is still firing both! I'm confused on this, but at least it is being consistent between our instances, that would be even worse!



closedrequest_or.JPG


curtisr
Kilo Expert

I figured it out! Had to use an advanced script, here is the code I used to stop the comment from firing when the request is closed.



if(current.request_item.request.active == 'true')


  {answer = true;}


else


  {answer = false;}



Seems so simple now that I see it . Thank you all for the input and help.