# Ticket/Issue 列表模板 name: "Ticket 列表" id: "ticket-list" width: 80mm description: "打印 GitHub/Jira 等 Ticket 或 Issue 列表" defaults: fontSize: normal lineHeight: 1.0 marginBottom: 0 page: marginTop: 2 marginBottom: 3 blocks: # 标题 - type: text content: "🎫 {{project}} Tickets" align: center fontSize: large bold: true marginBottom: 0 # 副标题 - type: text content: "{{filter}} - 共 {{tickets.length}} 条" align: center fontSize: small marginBottom: 1 # 分隔线 - type: divider char: "=" marginBottom: 1 # Ticket 列表 - type: list data: "{{tickets}}" itemTemplate: # Ticket 编号和状态 - type: row marginBottom: 0 columns: - content: "#{{id}}" align: left bold: true width: 30% - content: "[{{status}}]" align: center width: 35% - content: "{{priority}}" align: right width: 35% # 标题 - type: text content: "{{title}}" align: left marginBottom: 0 # 标签 - type: text content: "标签: {{labels.join ', '}}" align: left fontSize: small marginBottom: 0 # 负责人和时间 - type: row marginBottom: 0 columns: - content: "👤 {{assignee}}" align: left fontSize: small width: 50% - content: "📅 {{dueDate}}" align: right fontSize: small width: 50% # 分隔线 - type: divider char: "-" marginBottom: 1 # 底部统计 - type: divider char: "=" marginBottom: 0 - type: text content: "按状态统计:" align: left fontSize: small bold: true marginBottom: 0 - type: list data: "{{statusStats}}" itemTemplate: - type: text content: " {{status}}: {{count}}" align: left fontSize: small marginBottom: 0