benjypng / logseq-kanban-plugin

MIT License
102 stars 9 forks source link

使用query查询tasks,并没有自动更新看板 #17

Closed duiliuliu closed 2 years ago

duiliuliu commented 2 years ago

插件:logseq-kanban-plugin v2.7.2 logseq:0.6.8 mac端

示例图片:动态query到任务了,不过看板没有展示出来 image

示例操作:

- {{renderer :kanban_yewciylgd}}
    - tasks
        -  #+BEGIN_QUERY
 {:title [:h3 "✅ All Tasks:"]
  :query [:find (pull ?b [*])
          :in $ ?start ?today
          :where
          [?b :block/marker ?marker] 
          [(missing? $ ?b :block/scheduled)]
          (between ?b ?start ?today)
          [?b :block/page ?page]           
          [?page :block/original-name ?name]  
]
  :inputs [:7d :today]
  :breadcrumb-show? false
  :result-transform (fn [result]
                      (sort-by (fn [h]
                                 (get h :block/created-at)) result))
  :collapsed? false}
#+END_QUERY
benjypng commented 2 years ago

There are some changes to the way queries are done in Logseq, but the plugin has not been updated to accommodate the changes. Will need some time to look into this.