Can we call script include from SLA filter condition?

neethu4
Giga Expert

Hi

Can we call script include from a SLA start condition using below?

javascript:newGetInSys().getinc();

I user the above method to call the script include function but it is not triggering from the SLA start condition.

I have verified the script and it is working in background script.

Thanks,

Neethu

 

21 REPLIES 21

Jaspal Singh
Mega Patron
Mega Patron

What does the script include return as value or output? 

sys_id

Thanks Neethu if the sys_id is the sys_id of values from the table on which sla defintion configured then you can use something as suggested by Harshvardhan i.e in format

sys_id || is one of || javascript: javascript:new GetInSys().getinc();

Harsh Vardhan
Giga Patron

the script include is returning the sys_id ? 

if yes then you can. 

make sure its client callable check box checked and condition would be like below. 

 

sys_id | is one of | javascript: new global.GetInSys().getinc();