Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Additional comments from RITM to SCTask

lexdiaz
Giga Contributor

Hi Community,

I want to know if is possible see the Additional comments posted(activity) on RITM into SCTask form.

In our setup, if the SCTASK owner posts to Additional Comments it goes to the Client. Then the client posts a response but it only goes back to the RITM, as our clients respond using RITM form from Portal.

Thanks

Lex

8 REPLIES 8

dvp
Mega Sage

you can also write a notification on RITM to send updated comment info to fulfillers


How would you go about writing the notification on RITM to send updated comments to fulfillers exactly?  


trigger an event from business rule and pass the assigned to's (if assigned to is empty then send to group ) of the tasks as an event parameter



var assigneeArr = [];


    var assignGroupArr = [];



var task = new GlideRecord('sc_task');


task.addQuery('request_item', current.sys_id);


task.addActiveQuery();


task.query();




while(task.next()){


if(task.assigned_to != '')


assigneeArr.push(task.assigned_to.toString());


else



assignGroupArr.push(task.assignment_group.toString());


}


Snehal2
Kilo Guru

Hi there,

 Checkout my reply on the following post: 

Additional comments on req vs ritm vs sc_task

 Hope it helps you.

 Regards,

Snehal Madakatti