Search code examples
agiletracsprint

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=priority,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)]]


Solution

  • 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.