We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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

Forum Posts

How to compare date range in field styles

Hi Experts,I am trying to build a query that if   due date is between today and tommorow , then that record be shown with red color.doing this in System UI ---> Field StylesCame up with this conditionjavascript: gs.dateDiff(gs.now(),current.u_due_dat...

Change colour of field style based on date comparison

HiI'm trying to get the due date field text on the Problem form to change colour if the date is in the past.I've created a field style for the field 'Due Date' on the Problem table to turn read if the following value is true:javascript:gs.dateDiff(gs...

andrewnorris by Giga Contributor
  • 4392 Views
  • 12 replies
  • 1 helpfuls

Resolved! How can i extract the Downstream Relationship details and Upstream relationship details from cmdb_ci_server table for each server.

How can i extract the Downstream Relationship details and Upstream relationship details from cmdb_ci_server table for each server. basically i am trying to know the relationship between cmdb_ci_server,cmdb_ci_cluster and cmdb_ci_service_discovery  If...

find_real_file.png

getDateFromFormat not defined Error in Service Portal.

I am getting getDateFromFormat not defined in Service Portal. I have two fields on my form start date and end date. We have also users in Europe where their date format is dd--mm--yyyy So our requirement is start date should not allow past dates and ...

Rosy by Kilo Contributor
  • 7200 Views
  • 12 replies
  • 14 helpfuls

Resolved! Update workflow activities via script

Is there any way to update workflow activities of existing workflows via script? we have a requirement to update the value of assignment group in all the activities(catalog task/ approval group) where specific group is used. Regards, Mandeep

Resolved! Is client scripts, UI policies etc supported in Agent Workspace

Does anyone know if there is support for client scripts, UI policies etc in Agent Workspace? E.g. I have an onchange client script that automatically populates Business Service based on chosen Service Offering. This works fine in normal Incident form...

Rolf Nyhus by Tera Guru
  • 5432 Views
  • 6 replies
  • 2 helpfuls

How to get day and month, Year

Hi, please help me in Date , it could not getting Month and year. displaying undefined  Business Rule: Incident  , Update, Before var cdate=current.u_date_needed; var d = new Date(); var hh = d.getHours(); var date=0;gs.addInfoMessage(gs.getMessage(h...

Resolved! Add new line in help text field on catalog variable field

Hi All,What i want is to add new line in help text on catalog variable field.I have searched on community and found solution as given in this link -Can you break lines in "more information" of variables? I have made changes as per solution given in t...

find_real_file.png find_real_file.png

Resolved! Fuzzy search in Location / Department fields

Hi all, This is my very first post. We are currently struggling with the lack of 'fuzzy search' in specifically the Location and Department fields. I work for an Dutch company within healthcare and we have several locations at which an number of diff...

Resolved! How to revert ran Scheduled Job script back

Dear community,  Please help to resolve the issue. I was running the Scheduled Job in Dev and the script was incorrect, so even though it was a simple test it caused major issue with the test data. Please help how to make it go away how to revert to ...

Resolved! facing issue with check box type variables in service catalog

I am observing 2 issues with check box controls in service now 1.after creating 2 check box control in sequence i am facing some string as"options " in serice portal. 2.in order to avoid this i am introduced a new label between 2 check box control,th...

rajasekahr by Tera Guru
  • 3243 Views
  • 5 replies
  • 2 helpfuls

Resolved! Custom condition is not working on group Approvals

Hello   I added a custom condition 'conditionally approved' on Group Approvals. It is working on User Approvals But its not moving forward to other activity in Group Approvals. I need this to work in Group approvals as I need to get an approval from ...

Achu1 by Mega Expert
  • 2628 Views
  • 5 replies
  • 2 helpfuls