Recent searches
No recent searches
Hide requests on "My request" page depending on last update date
Answered
Posted Mar 01, 2022
Hello!
I would like to hide from the 'My activities' page the tickets whose last update was before 2021.
I have already managed to filter certain requests by status, using
{{#isnt status 'closed'}}
on the requests_page.hbs,
but I can't manage to filter them out by last update, I have tried using
{{#if (compare updated_at ">" 02/06/2022)}}
but it doesn't seem to work.
Is it possible to do what I am looking for, how would I have to write the code?
Thanks
1
7
7 comments
Tipene Hughes
Hi Rosa Lopez,
Thanks for reaching out!
Unfortunately there isn't a way to hide requests based on date within the constraints of the available helpers. Would you mind sharing the use-case for needing the requests hidden? There may be another solution that I can help with.
Look forward to hearing from you!
Tipene
0
Rosa Lopez
Hi Tipene Hughes, thanks for your reply, luckily, I have managed to filter out the requests by date using the tymestamp format for the date. That was the part I was missing. Best regards.
0
John DiGregorio
Hello - we create tickets for customer maintenance and do not want them to show on the community for the customer to see. We do need them to be logged under the customer account for tracking purposes. Is there a way to hide a ticket from the customer? I understand if there are no public comments it will be hidden. However, we have an integration in place and once is a while someone will post a public comment. Any help would be greatly appreciated
1
Dainne Kiara Lucena-Laxamana
Hi John DiGregorio
If you are referring to hiding the "My requests" page in the help center, yes that is possible but needs to be done in the Help Center's coding. You can remove the placeholder {{link 'my_activities' class='my-activities'}} by editing the Header. More information can be found here.
0
Julia DiGregorio
I don't want to hide the page - I want to hide some cases from the customer. We do a lot of maintenance, we want to track under the account but not have the customer see it
0
Rosa Lopez
Hi Julia DiGregorio, you can try this:
- Categorize those tickets as 'task'
- In the 'requests_page.hbs' template add {{#isnt type 'task'}} after {{#each requests}}
It has worked for us.
0
Julia DiGregorio
Rosa López - perfect thank you
0