i have requirement To notify end user and assigned to when sctask updated with additional comments

Ramu8
Tera Expert

Hi Team,

 

i have requirement to only notify end user(requestor for) when sc task updated with additional comments by assigned to

 

and 

 

i have requirement to only notify assigned to when sc task updated with additional comments by end user(requestor for) 

 

note: in our instance when we update sc task with additional comments, it is updating the RITM additional comments

 

please advice

3 REPLIES 3

Runjay Patel
Giga Sage

Hi @Ramu8 ,

 

Create two notification, one for requested for and 2nd for assigned to.

 

1. For requested for use condition like below and in "Who will receive" select "requested for" field.

RunjayPatel_0-1730825749524.png

 

2. For Assigned to use below condition and in "Who will receive" select "assigned to" field.

RunjayPatel_1-1730825934794.png

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

 

 

 

 

Hi @Runjay Patel 

 

thanks for the reply but created by is showing as system so it is not working 

 

and tried with below after br facing isssue when two task are avialble  

 

 

    var taskData = new GlideRecord('sc_task');
    taskData.addQuery('request_item', current.sys_id);
    taskData.query();
    while (taskData.next()) {
        gs.log('ramu test' + taskData.number);
        var reqUser = current.requested_for.toString();
        var assignedUser = taskData.assigned_to.toString();
                if (gs.getUserID != assignedUser) {
            gs.eventQueue("task additional comments to analyst", current, 'assignedUser', '');
        }
    }

Mark Manders
Mega Patron

https://www.servicenow.com/community/developer-forum/to-notify-end-user-and-assigned-to-when-sctask-...


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark