I am currently working on a new plugin called QueryAllPlugin. The goal
of this plugin is to be able to do ticket queries across multiple projects.
My prototype implementation basically amounts to the SearchAllPlugin
with part of QueryModule.process_request() grafted into it. It works
insofar as it lists tickets from multiple projects in the custom query
page, but it is quite fragile.
What I was trying to do is to get the actual query string from Trac so I
can pass it directly to Query.from_string() instead of having to go the
round about way through QueryModule. The Request object only gives me
'/query' without any of the actual query text. Is there some way to get
this from Trac? If not, is there some better way to go about this than
my little hack mentioned above?
Thanks,
Alesh
Erik
I could add a custom ticket field for Project, but I would like to avoid
that if possible. Basically what I need is the ability to create a
"meta" ticket field and populate it on the fly based on which project
the ticket came from. I can then filter the results myself.
I can add a Project filter to the filters list, but its value is not
saved in the session and it disappears. What I would like to know is if
what I am trying to do is possible (and how) or if adding a custom
ticket field in the ini file is the only way to get this to work.
Thanks,
Alesh