Changes between Version 49 and Version 50 of WikiTicketCalendarMacro
- Timestamp:
- Aug 11, 2010, 11:00:03 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiTicketCalendarMacro
v49 v50 60 60 [[WikiTicketCalendar([year,month,[showbuttons,[wiki_page_format, 61 61 [show_ticket_open_dates,[wiki_page_template, 62 [query_expression,[list_condense ]]]]]]])]]62 [query_expression,[list_condense,[cal_width]]]]]]]])]] 63 63 64 64 Arguments … … 73 73 wiki_page_template = wiki template tried to create new page 74 74 list_condense = ticket count limit to switch off ticket summary display 75 75 cal_width = set calendar table 'min-width', and optionally 'width' 76 for surrounding div triggered by prepending '+' to value 76 77 Advanced Use 77 78 ------------ 78 79 [[WikiTicketCalendar([nav=(0|1)],[wiki=<strftime-expression>], 79 80 [cdate=(0|1)],[base=<wiki_page_template>],[query=<TracQuery-expr], 80 [short=<integer-value>] )]]81 [short=<integer-value>],[width=[+]<valid-CSS-size>])]] 81 82 82 83 - equivalent keyword-argument available for all but first two arguments … … 99 100 [[WikiTicketCalendar(wiki=Meeting-%Y-%m-%d,query=type=task&owner=wg1)]] 100 101 [[WikiTicketCalendar(wiki=Meeting_%Y/%m/%d,short=6)]] 102 [[WikiTicketCalendar(*,*,true,Meeting-%Y%m%d,width=+75%;)]] 101 103 }}} 102 104 … … 116 118 short=0 same as 'list_condense', total ticket count per day, that'll have 117 119 ticket list display condensed to just ticket no., 0 = never condense list 120 width=100%; same as 'cal_width', check '+' prefixed values, if you need more forceful width definition 118 121 }}} 119 122 The ''query'' keyword supports any expression supported by TracQuery. This is the single new ticket selection logic that can use custom field values as well as expressions chained by AND (OR since 0.12 only). An invalid expression was chosen on purpose to select and show all tickets by default. Use your own query expression to create per-developer or per-component ticket calendars, or you could choose to display tickets only with high/highest priority, tickets with some special content in a custom field, etc. … … 124 127 ticket.due_field.name = due_close 125 128 ticket.due_field.format = %y-%m-%d 126 ticket.due_field.utcoffset = 0127 129 }}} 128 130 Again these are the implicit default values to give backwards compatible behaviour. … … 133 135 ticket.due_field.name = due-date 134 136 ticket.due_field.format = %m/%d/%Y 135 ticket.due_field.utcoffset = -5136 137 }}} 137 * account for US east coast time138 138 * for a custom due date field named 'due-date' that holds 139 139 * US style date with 4-digit year … … 143 143 ticket.due_field.name = due_date 144 144 ticket.due_field.format = ts 145 ticket.due_field.utcoffset = 2146 145 }}} 147 * support European time zone offset148 146 * for a custom due date field named 'due_date' that holds 149 147 * true POSIX microsecond timestamps (see: [t:wiki:TracDev/Proposals/TracTicketsCustomTimeFields custom time fields proposal])