Developer forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Forum Posts

Automated Testing Framework (ATF) & Server Side Script

Within a ATF that I've created, I've managed to successfully extract the sysID of a record within the 'sys_user_grmember' table.  Test results show the following: Step 8 (Record Query): Successfully found 2 sys_user_grmember records matching quer...

leochavez by Tera Guru
  • 6413 Views
  • 9 replies
  • 5 helpfuls

Resolved! Overriding SNC Function

Hello All,  I am looking to edit the Incident Script Include that calls the IncidentSNC script include. I would like to edit the reopen function in the IncidentSNC script include. I want to clear the assigned to user of the reopened incident. I know ...

Resolved! Dynamic Reference Qualifier - Script Include InactiveUsers

All,I need to use a checkbox (true/false) to toggle whether or not I can see inactive users, on a single lonely user reference field.   The business has asked that admins (who by default can see inactive users) need to click a checkbox, before they c...

On Hold and On Hold reason metric

HI  We are trying to show a Performance analytics Dashboard to our service owners about their teams Incident performance over every month. One of the Metric is the No .of Incidents that were On Hold over 5 days and we want to bring this count down - ...

find_real_file.png
lakshmin by Giga Guru
  • 2013 Views
  • 1 replies
  • 1 helpfuls

Resolved! Display only the date from a datetime field

Hello! I have a notification running on the sc_task table. I want to display the due date field from the RITM to the notification.I can do this by dot walk. However, I only want to display the date section (bold part from the sample) of the value. Du...

ceraulo by Mega Guru
  • 3375 Views
  • 2 replies
  • 2 helpfuls

GlideV2ChartingIncludesSP.js usage in Service Portal

Hi, i have a question regarding the usage of GlideV2ChartingIncludesSP.js. I was trying to embed custom reports in the service portal by using the 'embedReportByParams function but the reports seem not to render properly. It does work when i use the ...

Agmal by Kilo Contributor
  • 1708 Views
  • 4 replies
  • 2 helpfuls

Resolved! Compare dates in scheduled jobs

Hello! I have a scheduled job that triggers an event to send a notification. It should trigger when the due date is one day from today aka tomorrow. The script in my scheduled job is var gr = new GlideRecord("sc_task"); gr.addEncodedQuery('active=tru...

ceraulo by Mega Guru
  • 1730 Views
  • 4 replies
  • 3 helpfuls

Resolved! Fields validation RegEx onChange client script

Hi All, I have requirement to validate the number entered in a field . For this I created Onchange client script and below RegEx is not working .It is not accepting the number even I give in below format .  Please guide.  Number format should be - 12...

Mrman by Tera Guru
  • 3142 Views
  • 3 replies
  • 2 helpfuls

Resolved! Scheduled Report Conditional Script Problem

Good morning community, I am seeing something strange on some scheduled reports using conditional scripts to determine which days to run (weekdays and fridays being the important ones). I did the searching and saw the notice about using js and not gl...

jlaps by Kilo Sage
  • 1653 Views
  • 5 replies
  • 1 helpfuls

JSON object in Scoped Application

Hello,Working on a Helsinki instance,var json = new JSON();Works fine in the Global Scope but crashes within an Scoped Application:Invalid object in scoped script: org.mozilla.javascript.gen.sys_script_include_04cf1a2f0fd2020094f3c09ce1050eba_905@1ca...

hmartind by Kilo Expert
  • 6082 Views
  • 5 replies
  • 3 helpfuls

Hide Work Notes in Activity Log only for Non-ITIL users

Hi We have a requirement like this, We want to hide the Work notes field in the activity log only for Non ITIL Users , While the Additional comments will still be visible for them, Is this possible ? What does the Lock icon on the Work notes in Activ...

Resolved! Auto populate Assignment group of logged in user

Hi , I want the Assignment group to show logged-in users groups currently I have a script that shows selected users group what modifications to be done to the script and what should be the reference qualifier. Kindly help me  

find_real_file.png
Appu by Tera Guru
  • 1913 Views
  • 2 replies
  • 2 helpfuls