Replies: 1 comment 2 replies
-
The man page shows using multiple args to specify multiple IDs. It lists a few other ways, but none with commas. Could that be your issue? Although, any of these ways works for me. I do think multiple tasks are given one at a time to multiple invocations of the hook, yes. Or, they were before... Are you sure your hook didn't give an error, which didn't output the update json for the second one? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wrote an on-modify hook, but I have issues when I do
task done
for more than one task.My script assumes that it will get 2 lines of input, and it outputs one line, like described in the documentation: https://taskwarrior.org/docs/hooks/#interfaces
So I assume that the script is run once for each task, rather than all tasks being sent to it in a batch.
Steps to reproduce
Run
task 1,2 done
Expected result
Status of tasks 1 and 2 are set to 'complete'.
Actual result
I.e. only one task is updated. The other remains as pending.
Beta Was this translation helpful? Give feedback.
All reactions