Kanboard calculates the “time spent” field of a task based on the "duration"of all the subtasks.
I don’t know if that’s what you want, but I once needed to easily see how much time the task was “in progress”. It was a short project with very short tasks that were done within the same day, so we didn’t have the problem of the task being “in progress” overnigh. I did this by using 2 automatic actions:
- Add a subtask and activate the timer when moving a task to another column
- Stop the timer of all subtasks when moving a task to another column
I’ve added one “add subtask…” action with the “work in progress” column, and one “stop the timer…” task for each other column of my board.
This way, everytime a task goes to “work in progress column” a subtask named “work” is added to it and the timer is stared. When this tash goes to any other column, this timer will be stopped and the time spent of all subtasks will be added to the main task.
When a task is moved a lot between “work in progress” and other columns, many subtasks will appear, but I don’t use subtasks, and only needed the time spent, this wasn’t an issue to me.
There are also two plugins available at the Plugin Directory that may help you:
TimeTrackingEditor - adds a button on subtasks so you can add as much time as you want directly to the subtask
Task Interval Button - adds a “add time interval” at the sidebar of the task view that adds 30 minutes to the task’s time spent without the use of a subtask. The problem is that the interval is fixed (30 minutes) and if you stop a subtask, the task’s time spent value is overwritten with the sum of the time spent of all subtasks.
If you edit the time spent from a task, it will be overwritten when a subtask is stopped. With the first pugin, you can add custom interval to subtasks and you never lose this time.
Hope I could help you!