incident short description updation

Srvs
Kilo Guru

Hello All,

i need to update the incident short description like "incident number+ caller+ is updated this incident." using script include,

to achieve this functionality i wrote a script include like below, and i called that SI inside the Business rule but i dont know how to receive the data from script to business rule,

please help me.

Script include:

MyMethod:function(){
var details=new GlideRecord('incident');
details.addQuery('active',true);
details.addQuery('sys_id', current.SysID);
details.query();
while (details.next()){
return number+' '+ caller_id+ ' '+"is updated this incident.";

Business rule:

var dtls=new SIncludeBRcall().MyMethod();

 

Here i dont know how to update that data into short description.

 

Regards,

Venkat.

5 REPLIES 5

Shweta KHAJAPUR
Tera Guru

Hi,

Write below code in Before BR ,

var user = g_form.getReference('caller_id').name;
current.short_description = current.number+' '+user+' '+'is updated this incident';