Stopwatch-style Work Timer
This workflow enables a timer that tracks the amount of time spent working on an issue. The behavior is similar to the In Progress Work Timer. Instead of using the value for the State to start and stop the timer, this workflow uses the values for an independent Timer field.
Use this workflow when you want to track time spent working on an issue without affecting the value for the State field.
Standalone Work Timer
To enable this workflow:
Enable and configure time tracking for your project. For instructions, see Enable Time Tracking.
Add a field that stores an
enumtype with the name Timer to your project.
Configure the field to store a single value.
Configure the field to allow an empty value.
Add the values Start and Stop to the field.
Add a field that stores a
date and timetype with the name Timer time to your project.
Attach the Stopwatch-style Work Timer workflow to your project.
This workflow enables a timer that you can use to track the amount of time you spend working on an issue. When you stop the timer, the elapsed time is automatically added to the issue as a work item.
When you start working on an issue, set the value of the Timer field to Start.
The workflow displays the message: The timer is started.
The value for the Timer time field is set to the current date and time.
Continue working as you would with any other issue. Try to avoid distractions — the clock is ticking!
When you have completed your work, change the value of the Timer field to Stop.
The workflow displays the message: Work time added.
A work item is added to the issue.
Each work item is assigned the following values:
The current user is set as the work author.
The work date is set to the current date with the
The comment is set to: The work item automatically added by the timer.
The spent time is calculated based on the difference between the value for the Timer time field and the current date and time.
The workflow does not assign a work type to work items. If you want to add a specific work type programmatically, you can modify the on-change rule that stops the timer and generates the work item. For specific instructions, refer to the corresponding page in our Developer Portal.
This workflow includes two rules.
Start timer when the value for "Timer" becomes "Start"
This on-change rule starts the timer.
Stop timer when the value for "Timer" becomes "Stop"
This on-change rule stops the timer. The elapsed time is added to the issue as a work item.
The default workflow doesn't set a value for the work type. If you want to set a default work type for work items that are generated by this workflow, you can customize this rule. For specific instructions, refer to the corresponding page in our Developer Portal.