如何为 Trac TicketQuery 定义变量?
使用 TRAC Sprint 的 TicketQuery 模板来显示正在发生的情况。当模板在多个位置需要当前冲刺的名称时,如何仅输入一次?例如,“Sprint1”需要 6 个位置:
= 新项目 = [[TicketQuery(milestone=Sprint1,status=new,format=table,order=priority,col=id|summary|priority|component|owner|type)]]
= 正在进行的项目 = [[TicketQuery(milestone=Sprint1,status=in_progress,format=table,order=priority,col=id|summary|priority|component|owner|type)] ]
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)]]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许这会做一些接近你想要的事情? (它将按状态值分组,因此您应该只需要 1 个查询而不是 6 个。)
至于定义这样的变量,不,没有办法做到这一点。
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.)
As for defining variables like that, no, there isn't a way to do that.