开发者

How to define variable for Trac TicketQuery?

Using TRAC TicketQuery template for sprint to show what's going on. How would I type name of current sprint only ONCE, when template needs it in multiple location? For example "Sprint1" is needed is 6 places:

= New items = [[TicketQuery(milestone=Sprint1,status=new,format=table,order=pr开发者_如何学编程iority,col=id|summary|priority|component|owner|type)]]

= Items in progress = [[TicketQuery(milestone=Sprint1,status=in_progress,format=table,order=priority,col=id|summary|priority|component|owner|type)]]


Perhaps this will do something close to what you want? (It will group by status value, so you should only need 1 query instead of 6.)

[[TicketQuery(milestone=Sprint1,format=table,order=priority,col=id|summary|priority|component|owner|type,group=status)]]

As for defining variables like that, no, there isn't a way to do that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜