Add option to date filter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2019 02:42 AM
Hi Community,
I am attempting to add an extra value to the date filter:
From reading other posts I think the key lies in modifying the "Get Date Filter Options for Date Filters" business rule but I have added the line that I want and it does not appear to work.
To clarify, I am trying to add an option for "Last 2 months" and added the below line to the business rule:
answer.add('041_Last 2 months@javascript:gs.monthsAgoStart(2)@javascript:gs.endOfThisMonth()', gs.getMessage('Last 2 months'));
Do i need to change anything else to get this to work?
Thanks!
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2020 08:51 AM
Unfortunately I never found a way to do this.
If i remember rightly, I think I ended up doing a 3 month trend report instead which satisfied the requirement so I never looked into this method further.
It might be worth raising this with ServiceNow as I think that the ability to add extra date filter options would certainly be handy.