Database view to filter the tickets created on last 6 months

Hari1
Mega Sage

Hi,

Need help to add filter condition for the database view to the tickets created on last 6 months.

I tried using inc_sys_created_on<javascript:gs.beginningOfLast6Months() but it's not working

1 ACCEPTED SOLUTION

I was able to achieve this by using "sys_created_on>= DATE_SUB(CURDATE(), INTERVAL 6 MONTH)"

View solution in original post

5 REPLIES 5

Noor Mohammad1
Kilo Guru

hi hemanth,

try with this 

sys_created_onONLast 6 months@javascript:gs.beginningOfLast6Months()@javascript:gs.endOfLast6Months()^EQ

find_real_file.png

thanks,

S Noor Mohammad

 

Hi Noor,

Please look into the below screenshots

find_real_file.png

find_real_file.png

I am getting the below error.

find_real_file.png

i am not sure of the where clause throwing those errors as you are putting that in database view, can you just remove those last 6 months condition and add filter condition after you create reports for that particular database view  instead.

I was able to achieve this by using "sys_created_on>= DATE_SUB(CURDATE(), INTERVAL 6 MONTH)"