Can we call script include from SLA filter condition?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2020 02:42 AM
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
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2020 02:46 AM
What does the script include return as value or output?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2020 02:57 AM
sys_id

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2020 03:56 AM
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();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2020 02:47 AM
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();