| 8 | | === Mandatory Parameters === |
| 9 | | * trac query filter - this field it has to have the syntax of the trac query system |
| 10 | | * groupby - it has to contain a ticket field name after the counts are done |
| 11 | | |
| 12 | | EX: `[[TicketStatusQuery(milestone=milestone1, groupby=component)]]` |
| 13 | | [[TicketStatusQuery(milestone=milestone1, groupby=component)]] |
| 14 | | |
| 15 | | ==== Trac Query Syntax ==== |
| 16 | | The trac ticket query is made of pairs of ticket field names with values separated by & character. |
| 17 | | The trac query contains: |
| 18 | | * ticket fields |
| 19 | | * values - if you have multiple values for one ticket field just separate them by | character |
| 20 | | EX: `[[TicketStatusQuery(milestone=milestone1|milestone2, groupby=component)]]` |
| 21 | | [[TicketStatusQuery(milestone=milestone1|milestone2, groupby=component)]] |
| 22 | | |
| 23 | | * operators |
| 24 | | * ! |
| 25 | | * < and > |
| 26 | | * !^ |
| 27 | | * ~ |
| 28 | | * $ |
| 29 | | EX: `[[TicketStatusQuery(milestone=milestone1|milestone2&owner=!rcorsaro, groupby=component)]]` |
| 30 | | [[TicketStatusQuery(milestone=milestone1|milestone2&owner=!rcorsaro, groupby=component)]] |
| 31 | | |
| 32 | | ==== Using time variables ==== |
| 33 | | The following variables are implemented: |
| 34 | | * NOW |
| 35 | | * YESTERDAY |
| 36 | | * USER |
| 37 | | EX:`[[TicketStatusQuery(milestone=milestone1|milestone2&owner=$USER, groupby=component, name=Your tickets)]]` |
| 38 | | [[TicketStatusQuery(milestone=milestone1|milestone2&owner=$USER, groupby=component, name=Your tickets)]] |
| 39 | | |
| 40 | | This variables were implemented to be used in the filter part of the macro and to put the appropriate value every time the macro is run. |
| 41 | | For more details see TicketCountQuery. |
| 42 | | |
| 43 | | === Optional Parameters === |
| 44 | | * name - it must contain a string that will be used as the title of the widget |
| 45 | | |
| 46 | | * id - the value of this field will be set as the id of the parent div of the widget. This is for extra inline styling. |
| 47 | | * format - can have two values: `procent` or `count`. The default value is `procent`. This parameter determines the way the values are displayed. |
| 48 | | EX: `[[TicketStatusQuery(milestone=milestone1|milestone2, groupby=component, format=count)]]` |
| 49 | | [[TicketStatusQuery(milestone=milestone1|milestone2, groupby=component, format=count)]] |
| 50 | | |