BUTTON[start,complete, cancel, delay, pause]

label: 开始
icon: play
style: primary
class: btn-warning
id: "start"
hidden: true
actions:
  - type: updateMetadata
    bindTarget: 状态
    evaluate: false
    value: "进行中"
label: 完成
icon: check
style: primary
class: btn-success
id: "complete"
hidden: true
actions:
  - type: updateMetadata
    bindTarget: 完成时间
    evaluate: true
    value: "new Date(new Date().getTime() + 8 * 3600 * 1000).toISOString().replace('T', ' ').substring(0, 16);"
  - type: updateMetadata
    bindTarget: 状态
    evaluate: false
    value: "已完成"
label: 取消
icon: x
style: primary
class: btn-danger
id: "cancel"
hidden: true
actions:
  - type: updateMetadata
    bindTarget: 状态
    evaluate: false
    value: "已取消"
label: 推迟
icon: chevrons-right
style: primary
class: btn-emphasis
id: "delay"
hidden: true
actions:
  - type: updateMetadata
    bindTarget: 预计交付时间
    evaluate: true
    value: "new Date(new Date(getMetadata('预计交付时间')).getTime() + 32 * 3600 * 1000).toISOString().replace('T', ' ').substring(0, 16)"
label: 搁置
icon: pause
style: "default"
class: btn-secondary
id: "pause"
hidden: true
actions:
  - type: updateMetadata
    bindTarget: 状态
    evaluate: false
    value: "已搁置"

阶段内容

未分配任务

  • FRP的中继服务器ip写入文件,让service读文件去(并把这部分配置内容放进拾心咖啡屋以方便调整)

任务

TABLE 
    状态,
    优先级,
    交付给 AS "交付给",
    预计交付时间
FROM 
    #任务
WHERE
    所属阶段 = this.file.link
    and 所属父任务 = null
SORT 
    状态 ASC,
    优先级 ASC,
    预计交付时间 ASC

相关内容

子阶段

TABLE 
    状态,
    优先级,
    交付给 AS "交付给",
    预计交付时间
FROM 
    #阶段
WHERE
    所属父阶段 = link(this.file.name)
SORT 
    状态 ASC,
    优先级 ASC,
    预计交付时间 ASC

前置内容

TABLE WITHOUT ID
    T AS "内容文件",
    T.tags AS "类型",
    T.状态 AS "状态",
    T.优先级 AS "优先级",
    T.交付给 AS "交付给",
    T.预计交付时间 AS "预计交付时间"
FROM
    #阶段 OR #项目 OR #任务
WHERE
    file.name = this.file.name
FLATTEN
    this.前置内容 AS T
WHERE
    T != null
SORT 
    状态 ASC,
    优先级 ASC,
    预计交付时间 ASC

已知问题