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

Forum Posts

Resolved! addDaysUTC() is not counting current day

Hi, I have a requirement to count days excluding weekends. I have a date range for an example. 12/Jan/2022 - 25/Jan/2022, returns 9 days where as it return 10 days. Below is the code that i am using Client Script: var fromDate = g_form.getValue("from...

Hari1 by Mega Sage
  • 2575 Views
  • 5 replies
  • 2 helpfuls

Resolved! How do I update value of a Variable on an active RITM/Stask?

Hi All,    I have been trying of update variable value on an active RITM. So far I have tried these two script. var gr = new GlideRecord('sc_req_item'); gr.addQuery('sys_id','eec9cfc287234d502d2d33b40cbb35b5'); gr.query; if(gr.next()){ gr.variables...

Reopening of a Service Request !!

Hi there...Have any one implemented reopening of service request in tool??If so could you please share the approach.  Thanks in AdvanceSitarani

srath by Tera Guru
  • 11934 Views
  • 9 replies
  • 0 helpfuls

Resolved! Making work notes mandatory if additional comments are empty and making additional comments mandatory if worknotes has some value.

Hello, I just want: If user has closed completed a catalog task VIA ServiceNow THEN they should be required to enter EITHER worknote or additional comments. - If user provides additional comments then worknotes are not required- If user provides work...

Unparseable Date: "CHGXXXXXX" java.text.ParseException: Unparseable date: "CHGXXXXXX": java.base/java.text.DateFormat.parse(DateFormat.java:395)

I started receiving this error on Friday morning and not sure what is causing it.  I upgraded to San Diego friday evening so im not sure why all of  a sudden this started friday morning.  I have received 21k repeat errors already today referencing di...

Resolved! Best practice for granting read access to 'cmdb_ci_service' table

Hi, When building a change request item (record producer) in the Service Catalog, what is the best-practice for granting a non-admin user the ability to read from the 'cmdb_ci_service' table?  For context: I have created a variable on the Catalog Ite...

UbiquitousRD by Kilo Contributor
  • 3760 Views
  • 5 replies
  • 1 helpfuls

Resolved! I have to copy Attachments from HR case to HR task

HI team,   I have to copy attachments from HR case to HR task. I tried below code  Table : sn_hr_core_case After BRule with inssert and update.   code should be:var sysID = current.sys_id; var CopyAttach = new GlideRecord('sn_hr_core_task'); CopyAtta...