Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Add option to date filter

alexcolbert
Kilo Guru

Hi Community,

 

I am attempting to add an extra value to the date filter:

 

find_real_file.png

 

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

5 REPLIES 5

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.