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

Get list of tracked task via dbus #80

Closed
daroczig opened this issue Nov 10, 2018 · 5 comments
Closed

Get list of tracked task via dbus #80

daroczig opened this issue Nov 10, 2018 · 5 comments

Comments

@daroczig
Copy link

This is such a great app, thanks!

Any chance to add an option to show the currently active task in the panel if the time tracker is on? Currently, if the time-tracker is active, then the color of the checkmark changes, but it would be great if the actual task name could also show up next to it.

@zagortenay333
Copy link
Owner

Srry, not gonna do this for 3 reasons:

  1. There isn't really such a thing as a task name, only the text of it. If the task is long, it would get ugly.
  2. It's possible to track multiple tasks at once, so making this work wouldn't be easy.
  3. I don't need this feature.

@daroczig
Copy link
Author

Got it, thanks for the quick feedback. I'm not really worried about (1) and (2), so I wouldn't mind implementing this -- even outside of the time++ extension. Any chance to query the tasks being tracked via dbus or other ways?

@zagortenay333
Copy link
Owner

@daroczig , I updated the time-tracker dbus api. Now you can get a list of all tracked tasks/projects as well as monitor when a task gets tracked/untracked:
https://github.com/zagortenay333/timepp__gnome/blob/565fa706944d7242c4b265e130c669502f836985/dbus/time_tracker_iface.xml#L22-L46
https://github.com/zagortenay333/timepp__gnome/blob/565fa706944d7242c4b265e130c669502f836985/dbus/scripts/examples#L38-L82

@daroczig
Copy link
Author

This is fantastic, thank you so much! 💯

@daroczig daroczig changed the title Show current task Get list of tracked task via dbus Nov 11, 2018
@daroczig
Copy link
Author

If anyone might want to do something like myself:

  • sync Jira tickets from the current Sprint to todo.txt using the Jira ticket id as the first word of the tasks
  • show the currently tracked Jira ticket id in the panel

Then I'm using Argos and a tiny Python script to print the Jira ticket id of the currently tracked task.

Demo:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants