-
Notifications
You must be signed in to change notification settings - Fork 0
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
Timesheet reports across multiple workspaces #3
Comments
This is an interesting one. I'd not really thought of workspaces being used like that! The idea I had was that they would be intentionally very separate to purposefully avoid being able to do this kind of thing. 😅 I do think this is a fair idea though. Relying on magic strings isn't very nice either, I think something Callum has changed may make that a little less magical though thankfully. One thing that springs to mind is just having an extra option on the list commands for entries and timesheets, something like Perhaps an intermediate solution would be to a) improve the scriptability of requesting the data for multiple timesheets by using exit codes instead of strings, and b) to then merge a helper script into the repository so that at least there is something in there that can be maintained along with Tid to do that job until something better in code comes along? |
I had wondered if I was misusing the workspaces a bit! The alternatives, I think, would be projects inside workspaces (which would be over complicating things), or an extra field available on the report for a project code or name. Improving the scriptability is definitely a good intermediate solution and will probably prove useful elsewhere. Go's templating seems to be really handy for getting the exact content you need in the exact format so it lends itself really well to being scripted. When the exit code adjustment is integrated into Tid, I'm happy to submit a PR with an updated script. |
Alright, so the changes to make the |
Sure thing - I'll update it in the next few hours. |
Hi,
Testing under the development branch, timesheet reports seem to be on a per-workspace basis.
It would be useful to be able to run a daily report across multiple workspaces (for example for tracking time across multiple projects for one billable entity) or run a report on specific workspaces without switching to them individually.
Today, I have three active workspaces (split by project, chargeable to one company) with time spent on tickets logged under each one. To send my daily report, I had to
tid stop
and cycle through the workspaces runningtid report
on each one.Example data:
The bash script below meets the feature request in a roundabout way (list the workspaces and find which one you're on at the moment, find your currently active check-in, loop through workspaces running a report on each and then resume your active check-in).
Thanks,
Mike
The text was updated successfully, but these errors were encountered: