YouTrack Cloud 2023.3 Help

In Progress Work Timer

This workflow lets your development team track the time spent working on an issue and log work items automatically. The behavior is similar to the Stopwatch-style Work Timer. Instead of using the value for an independent Timer field to start and stop the timer, this workflow uses default values for the State field.

Use this workflow when you want to track time spent working on an issue by measuring the amount of time an issue spends in the In Progress state.

Name

@jetbrains/youtrack-workflow-work-timer

Previous Title

In Progress Work Timer

Auto-attached

no

Rules

  • Start timer when issue is in progress (on-change)

  • Stop timer when issue state is updated (on-change)

To enable this workflow:

  1. Enable and configure time tracking for your project. For instructions, see Enable Time Tracking.

  2. Add a field that stores a date and time type with the name Timer time to your project.

  3. Attach the In Progress Work Timer workflow to your project.

For this workflow to function as written, your project must use a State field that includes the In Progress value. If you use different fields and values to track the status of issues in your project, modify the workflow accordingly.

Use Case

When a developer changes the state of an issue to In Progress, the workflow enters the current time in the Timer time field. When the developer changes the issue state from In Progress to another state, a work item with the time spent between the Timer time and the current time is added to issue on behalf of the user who updated the issue.

Rules

This workflow supports the following rules:

Title

Description

Start timer when issue is in progress

When the state of an issue is changed to In Progress, this rule sets the value of the Timer time to the current time.

Stop timer when issue state is updated

When the developer changes the issue state from In Progress to another state, this rule calculates the time spent working on the issue and adds a work item to the issue. The work item includes a message that is defined by this rule and the calculated time spent.

Last modified: 29 February 2024