Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i query taks done today #36

Closed
rmGFW opened this issue Sep 24, 2023 · 4 comments · Fixed by #37
Closed

how can i query taks done today #36

rmGFW opened this issue Sep 24, 2023 · 4 comments · Fixed by #37
Assignees
Labels
type: discussion type: enhancement New feature or request type: question Further information is requested

Comments

@rmGFW
Copy link

rmGFW commented Sep 24, 2023

how can i query task finished today (may create this task not in today's journal)

@YU000jp
Copy link
Owner

YU000jp commented Sep 24, 2023

@rmGFW Try this

  :default-queries {:journals [

                              {
                               :title ["☑️ Today DONE task"]
                               :query (and (between today tomorrow) (task DONE) )
                               :group-by-page? false
                               :breadcrumb-show? false
                               }

}

@rmGFW
Copy link
Author

rmGFW commented Sep 25, 2023

this only list done task which was create today, if task is create before today, and done today ,will not meet the condition

@YU000jp
Copy link
Owner

YU000jp commented Sep 25, 2023

Certainly, that's correct. This issue is indeed equivalent to the one mentioned (DimitryDushkin/logseq-plugin-task-check-date#10).
As of now, a solution to this problem has not been provided.
I have "Confirmation DONE task" plugin, and I believe it might be achievable by adding hidden properties for the query using that plugin. I add this to my TODOs.

@YU000jp YU000jp transferred this issue from YU000jp/logseq-default-queries-journals Sep 25, 2023
@YU000jp YU000jp added type: enhancement New feature or request type: question Further information is requested type: discussion labels Sep 25, 2023
@YU000jp YU000jp linked a pull request Sep 29, 2023 that will close this issue
@github-project-automation github-project-automation bot moved this from Todo to Done in Logseq Plugin Organize Sep 29, 2023
@YU000jp YU000jp reopened this Sep 29, 2023
@github-project-automation github-project-automation bot moved this from Done to In Progress in Logseq Plugin Organize Sep 29, 2023
@YU000jp
Copy link
Owner

YU000jp commented Sep 29, 2023

@rmGFW
I released a new version. Starting from this version, hidden properties will be given in addition to the normal ones. (string:: yyyyMMdd)

Try This query on any block:

#+BEGIN_QUERY
  {
    :title "Tasks completed today"
    :query [
        :find (pull ?b [*])
        :in $ ?start ?end
        :where
            [?b :block/properties ?properties]
            [(get ?properties :string) ?completed]
            [(>= ?completed ?start)]
            [(< ?completed ?end)]
    ]
    :inputs [:today :tomorrow]
  }
  #+END_QUERY

The properties are hidden using CSS, but they can also be hidden using config.edn.

config.edn:

 :block-hidden-properties #{:string}

Please review it to see if there are any abnormalities and let me know the results.

@YU000jp YU000jp moved this from In Progress to Waiting in Logseq Plugin Organize Oct 14, 2023
github-actions bot pushed a commit that referenced this issue Oct 25, 2023
# [1.11.0](v1.10.0...v1.11.0) (2023-10-25)

### Bug Fixes

* **bug:** [#45](#45)  If another plugin is runnig / refactor ([c837b92](c837b92))

### Features

* **Add an option:** "different order (time and date)"  [#44](#44) ([7332882](7332882))
* **Add:** "open plugin settings" button ([458e450](458e450))
* **Add:** [#36](#36) plugin settings >  "hidden property for queries" ([cbf37f7](cbf37f7))
* **Add:** [#43](#43) plugin settings > Omit date if same as journal ([dba3e66](dba3e66))
* **Add:** [#44](#44) plugin settings >"Before or after the content of the first line" ([dabec23](dabec23))
* plugin settings > rename property page ([78cb82a](78cb82a))
github-actions bot pushed a commit that referenced this issue Oct 25, 2023
# [1.11.0](v1.10.0...v1.11.0) (2023-10-25)

### Bug Fixes

* **bug:** [#45](#45)  If another plugin is runnig / refactor ([c837b92](c837b92))
* **bug:** style > hidden "string" proprety ([795314f](795314f))

### Features

* **Add an option:** "different order (time and date)"  [#44](#44) ([7332882](7332882))
* **Add:** "open plugin settings" button ([458e450](458e450))
* **Add:** [#36](#36) plugin settings >  "hidden property for queries" ([cbf37f7](cbf37f7))
* **Add:** [#43](#43) plugin settings > Omit date if same as journal ([dba3e66](dba3e66))
* **Add:** [#44](#44) plugin settings >"Before or after the content of the first line" ([dabec23](dabec23))
* plugin settings > rename property page ([78cb82a](78cb82a))
@YU000jp YU000jp closed this as completed Oct 25, 2023
@github-project-automation github-project-automation bot moved this from Waiting to Done in Logseq Plugin Organize Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: discussion type: enhancement New feature or request type: question Further information is requested
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants