toggl / track-extension

Toggl Track browser extension for Chrome and Firefox
http://toggl.github.io/track-extension
Apache License 2.0
1.11k stars 567 forks source link

Custom formatting for description text #1187

Open bryanph opened 5 years ago

bryanph commented 5 years ago

This is a feature submitted initially through a PR here: #556

The idea is to allow the user to customize the time entry description based on data specific to the service. We currently have a simple default description: "${taskId} ${description}"

With this feature this can be changed by the user, for example: "Task #${taskId} - ${description}"

Implementation considerations

  1. Per-service custom string
  2. A single string that is changed based on the service used.

In the PR discussion, 2. was implemented paritally. The problem is that not all services provide a taskId so there must be some magic with changing the description string to account for when there is no taskId.

Perhaps a per-service custom string would be better since a user of toggl-button tends to use it for only one service anyway. This setting can be shown when we visit the service domain.

tupaschoal commented 5 years ago

I think this is a good idea. I personally have been using Toggl for over 3 years and always for just one service.

langri-sha commented 5 years ago

Also worth seeing https://github.com/toggl/toggl-button/issues/726 :crossed_flags:.

chrisaligent commented 5 years ago

Just found this Issue while looking for the feature in the extension. Namely our time entries for Jira need to be: ABC-1234: The Task Description but the Toggl extension formats them as: ABC-1234 The Task Description

We have a sync job which needs the colon as a separator in order to extract the Jira task ID.

Adding a customize option (per-service) would be a huge help, #556 looks like it was on the right track.