Choice option on data type

dhivyal94299399
Tera Contributor

 

I wanted to add filter option : 1 business day, 3 business days, 2 business days, 

 

In which module i can add them or this is possible

 

 

dhivyal94299399_0-1782114204086.png

 

10 REPLIES 10

@harshrohit We dont have is(dynamic)operator in created or updated field

When you will create dynamic filter option it will give is dynamic in your filter

PoonkodiS
Giga Sage

Hi @dhivyal94299399 

It is not possible to add custom, hard-coded options (like "1 business day") directly into that native date drop-down menu

PoonkodiS_0-1782123277518.png

Instead of trying to add a new option to the drop-down, you can use the built-in relative operator to filter by business days.

why is is not possible :

Solved: Customize filter dropdown for dates in List View - ServiceNow Community

When you use the Relative operator set to 3 Business Days Ago, ServiceNow automatically does this:
  1. It starts at Monday (Today).
  2. It looks backward and sees Sunday ➡️ Skips it (Not a business day).
  3. It sees Saturday ➡️ Skips it (Not a business day).
  4. It counts Friday (Day 1).
  5. It counts Thursday (Day 2).
  6. It counts Wednesday (Day 3).
The system instantly filters your list to show only the tickets from wednesday

 

@PoonkodiS 

 

Does relative operator automatically takes only business days ? because we dont have option to select 1 business days,

Hi @dhivyal94299399 

I am not sure it will exclude the weekends or not.Try this alternative approach,

If you filter for [Created] [relative] [on or after] [3] [days] [ago] on a Monday morning, the system will look back exactly 72 hours, meaning it will include all of Friday, Saturday, and Sunday.

 

  • [Created] [relative] [on or after] [5] [days] [ago]

  • [AND] [Created] [Trend] [after] [Sunday]

  • [AND] [Created] [Trend] [before] [Saturday]

  • relative filter with a trend filter to strip Saturdays and Sundays