Added the ability to search for tickets by custom query