cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Unbihexium
Level: Powered On

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 Team
Community Support Team

Re: Service Desk Template "Tickets older than 3 days" fitlering

Hi @Unbihexium ,

 

I test it and it works ok on my side.

20190315servicedesk.PNG

 

Best Regards.

Yumia

 

 

Unbihexium
Level: Powered On

Re: Service Desk Template "Tickets older than 3 days" fitlering

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,187)