Opened 11 years ago
Closed 6 years ago
#11241 closed defect (worksforme)
Doesn't consider query arguments
Reported by: | Ryan J Ollos | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | TracTicketStatsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description
Reported by Dan Harlacher over email:
Here is what I am trying, based on the example on the Trac Hacks page.
[[TicketStats(title=Bug Trend for Last 60 Days, daterange=2m, res_days=7, query=type='Bug')]]
It creates the chart, uses my title and counts the total number of tickets, not those who’s type=Bug.
I’ve tried a couple different syntaxes but none appear to change it.
[[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)]]
-
Attachments (0)
Change History (10)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
I think this was my mistake. I removed some spaces that where needed, between query and = and type. When I changed it to look like this it started working correctly.
[[TicketStats(title = Bug Trend for Last 90 Days, daterange = 3m, res_days = 7, query = type="Bug")]]
comment:3 Changed 11 years ago by
That problem sounds vaguely familiar. In any event, the plugin certainly shouldn't be so sensitive to whitespace in the keyword arguments.
comment:4 Changed 11 years ago by
Just wanted to confirm that your issue is resolved and we can just leave this ticket open for dealing with the whitespace sensitivity in the macro arguments.
comment:5 Changed 11 years ago by
It is. I do have another bug, but I'll write a separate ticket for it.
comment:6 Changed 11 years ago by
Sorry I haven't commented on this in awhile. Queries are working correctly for me know. Here is an example of one that I use that does work correctly. I think it was just a syntax error on my part. When I tweaked the query to match the format I was using for ticketcharts it worked better.
[[TicketStats(title = Bug Trend for Last 30 Days Filtering Pending Build and Test, daterange = 30d, res_days = 1, query = type='Bug'&milestone='8.0 Milestone 8'&bugstatus=!'Pending Test'|!'Pending Build')]]
comment:7 Changed 11 years ago by
Status: | new → accepted |
---|
comment:9 Changed 8 years ago by
Owner: | Ryan J Ollos deleted |
---|
comment:10 Changed 6 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Hey Ryan, thanks for taking a look at this.