Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

Using query arguments with TracTicketStats

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


dano.harlacher at gmail

Jul 19, 2013, 5:08 PM

Post #1 of 2 (46 views)
Permalink
Using query arguments with TracTicketStats

I'm having trouble getting the TracTicketStats to filter based on my query
arguments. I have it installed and it is drawing a chart with the proper
date range and title but appears to be ignoring my query. The example in
the docs is in this format

[.[.TicketStats(title = Error tickets by week last 3 months,
daterange=3m,res_days=7, query=Type='error')]]

So I used this as the template for the chart I wanted to create and used
this.

[[TicketStats(title=Bug Trend for Last 60 Days, daterange=2m, res_days=7,
query=type=‘Bug')]]

we have a type field where Bug is an option...

The results come back with the total number of tickets as well as open and
closes for everything, not just tickets whose type is Bug. So I tried a
couple of options that I thought would be closer to TracQuery formatting
and it never changed.

[[TicketStats(title=Bug Trend for Last 60 Days, daterange=2m, res_days=7,
query:?type=Bug)]]

or

[[TicketStats(title=Bug Trend for Last 60 Days, daterange=2m, res_days=7,
query:type=Bug)]]


Any guidance you can offer would be appreciated.


--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe [at] googlegroups
To post to this group, send email to trac-users [at] googlegroups
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.


rjollos at gmail

Aug 8, 2013, 1:14 AM

Post #2 of 2 (9 views)
Permalink
Re: Using query arguments with TracTicketStats [In reply to]

On Friday, July 19, 2013 5:08:43 PM UTC-7, Dan Harlacher wrote:

> I'm having trouble getting the TracTicketStats to filter based on my query
> arguments. I have it installed and it is drawing a chart with the proper
> date range and title but appears to be ignoring my query. The example in
> the docs is in this format
>
> [.[.TicketStats(title = Error tickets by week last 3 months,
> daterange=3m,res_days=7, query=Type='error')]]
>
> So I used this as the template for the chart I wanted to create and used
> this.
>
> [[TicketStats(title=Bug Trend for Last 60 Days, daterange=2m, res_days=7,
> query=type=‘Bug')]]
>
> we have a type field where Bug is an option...
>
> The results come back with the total number of tickets as well as open and
> closes for everything, not just tickets whose type is Bug. So I tried a
> couple of options that I thought would be closer to TracQuery formatting
> and it never changed.
>
> [[TicketStats(title=Bug Trend for Last 60 Days, daterange=2m, res_days=7,
> query:?type=Bug)]]
>
> or
>
> [[TicketStats(title=Bug Trend for Last 60 Days, daterange=2m, res_days=7,
> query:type=Bug)]]
>
>
> Any guidance you can offer would be appreciated.
>

For reference, the related ticket is http://trac-hacks.org/ticket/11241

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe [at] googlegroups
To post to this group, send email to trac-users [at] googlegroups
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.