Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE #5213 - Use URL params to open ticket list with preset filters #5225

Open
wants to merge 5 commits into
base: staging
Choose a base branch
from

Conversation

The-Daniel
Copy link
Contributor

This fixes #5213

Description

Adds ability for URL Search params to open the tickets list in the viewer with preset filters. The parameters are:
completed: boolean for whether showing completed statuses
queries: for the chips in the search box
templates: the _id values of the template chips you want active

Test cases

Add the following to the end of a viewer link and check it works as intended:

URL Params Expected result
Nothing special happens. The viewer opens up with no cards open
?completed=false&queries=&templates= Nothing special happens. The viewer opens up with no cards open
?completed=true The viewer opens with the tickets list open. The completed filter is active
?completed=yes The ticket list does not open. Non-boolean values for completed do not trigger the completed chip
?queries=hello Should add a query filter chip for hello
?queries=hello,world Should add a query filter chips for hello and world
?queries=%2Funicode%26" should add a query filter chip for /unicode&
?templates=<templateId> Should enable the template chips for the id provided
?templates=<templateId1>,<templateId2> Should enable the template chips for the ids provided
?templates=<templateId>&completed=true&queries=PIN:1 Should enable a filter of each type
?completed=true&ticketId=<ticketId> Should open the viewer in the ticket details for the selected ticket. When exiting back to list view the completed filter (and any other filters supplied via URL are active)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants