You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

On this page

Use case

In this use case we're going to automatically log work as soon as we enter and leave a specific status, like shown below:

As soon as we execute the Start Progress transition, we're starting our work. As soon as we execute the Stop Progress transition, we stop our work and automatically log the time we worked on the issue.

Prerequisites

In order to make this use case work, we need to create one custom fields to store the time we entered the specific status. 

Set up the custom field

Create a date time picker custom field

Name: Work Start Time

Go to the Field configuration and set the visibility of the created custom field to hidden.


Configuration

Set up the Start Progress transition

Add the Update fields post function to the Start Progress transition.

Target issue*

Choose Current issue

Fields


Field*

Choose Work Start Time

Value

Choose Set field value manually

Expression*

Enter the following expression:

{system.currentDateTime}
Set up the Stop Progress transition

Add the Log work post function to the Stop Progress transition.

Target issue

Choose Current issue

Time spent

Enter the following expression:

({system.currentDateTime} - {issue.cfnnnnn}) / {MINUTE}

cfnnnnn is the field code for the Work Start Time custom field we've previously created.

Update the field code to the corresponding field code on your instance!

Starting date-time

Enter the following expression:

{issue.cfnnnnn}

cfnnnnn is the field code for the Work Start Time custom field we've previously created.

Update the field code to the corresponding field code on your instance!

Work description

You can enter a comment like this:

Work started at %{issue.cfnnnnn} and stopped at %{system.currentDateTime}.

cfnnnnn is the field code for the Work Start Time custom field we've previously created.

Update the field code to the corresponding field code on your instance!

Additional options


Remaining estimate

Choose Auto adjustment


Screenshots



Screencast



Related use cases


If you still have questions, feel free to refer to our support team.