cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper III
Helper III

Service Desk Template "Tickets older than 3 days" fitlering

Hello 


I am using the Service Desk template and noticed that the ticket filtering for "Tickets older than 3 days" doesnt work.
One day old tickets appears in the "3day old Tieckets" filtering.
As I could not find any solution for this issue, I try my luck here.

I'm not able to figure out what to change / add to make this work.

please help

many thanks in advance
regards


@FilterGallery
If(ThisItem.TicketTypes="All tickets";UpdateContext({type:"All"});If(ThisItem.TicketTypes="New tickets";
UpdateContext({type:"New"});If(ThisItem.TicketTypes="Tickets in progress";UpdateContext({type:"In progress"});
If(ThisItem.TicketTypes="Tickets closed";UpdateContext({type:"Closed"});If(ThisItem.TicketTypes="Tickets on hold";
UpdateContext({type:"On hold"}))))));;

If(ThisItem.TicketTypes="Tickets older than 3 days";     //<--------- this 
UpdateContext({datetype:Text(DateAdd(Today(); -3));type:"Tickets older than 3 days"});    //<--------- this

If(ThisItem.TicketTypes="Tickets closed today";UpdateContext({datetype:Text(Today());type:"Tickets closed today"});
If(ThisItem.TicketTypes="Tickets opened today";UpdateContext({datetype:Text(Today());type:"Tickets opened today"}))))


-------------------------------
@TicketsGallery   

If(type="All";Tickets;If(type="Tickets older than 3 days";   //<------- starts here
Filter(Tickets; DateCreated <> datetype && DateCreated <>Text(Today());
DateCreated <> Text(DateAdd(Today(); -2));
DateCreated <> Text(DateAdd(Today(); -1))|| DateClosed <> datetype && DateClosed <> Text(Today());
DateClosed <> Text(DateAdd(Today(); -2));DateClosed <> Text(DateAdd(Today(); -1)));
If(type="Tickets opened today";Filter(Tickets;datetype in DateCreated);
If(type="Tickets closed today";Filter(Tickets;datetype in DateClosed);Filter(Tickets;type in Status)))))

2 REPLIES 2
Community Support
Community Support

Hi @Unbihexium ,

 

I test it and it works ok on my side.

20190315servicedesk.PNG

 

Best Regards.

Yumia

 

 

Hi Yumia
Thanks for your reply.
Unfortunately its not working, I've tried again with a brand new created template, added a ticket in the DB from yesterday and as you can see in the screenshot the ticket appears in the "3 days old tickets" which should be visible at the earliest on 03/17/2019.

regards

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (17,682)