Modify

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 Dan Harlacher

Hey Ryan, thanks for taking a look at this.

comment:2 Changed 11 years ago by Dan Harlacher

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 Ryan J Ollos

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 Ryan J Ollos

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 anonymous

It is. I do have another bug, but I'll write a separate ticket for it.

comment:6 Changed 10 years ago by Dan Harlacher

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.

[[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')]]
Version 0, edited 10 years ago by Dan Harlacher (next)

comment:7 Changed 10 years ago by Ryan J Ollos

Status: newaccepted

comment:8 Changed 9 years ago by Ryan J Ollos

Status: acceptednew

Refocusing.

comment:9 Changed 8 years ago by Ryan J Ollos

Owner: Ryan J Ollos deleted

comment:10 Changed 6 years ago by Ryan J Ollos

Resolution: worksforme
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.