Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel

On this page

Table of Contents
maxLevel3
exclude(On this page).*
stylecircle
typeflat
separatorpipe



UI Text Box
sizemedium
typeinfo

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. 

UI Expand
titleSet up the custom field


UI Steps


UI Step

Create a date time picker custom field

Name: Work Start Time


UI Step

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





Configuration

UI Expand
titleSet up the Start Progress transition


UI Steps


UI Step

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


UI Step

Target issue*

Choose Current issue


UI Step

Fields


UI Steps


UI Step

Field*

Choose Work Start Time


UI Step

Value

Choose Set field value manually


UI Step

Expression*

Enter the following expression:

Code Block
linenumberstrue
{system.currentDateTime}







UI Expand
titleSet up the Stop Progress transition


UI Steps


UI Step

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


UI Step

Target issue

Choose Current issue


UI Step

Time spent

Enter the following expression:

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


UI Text Box
typeinfo

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!



UI Step

Starting date-time

Enter the following expression:

Code Block
linenumberstrue
{issue.cfnnnnn}


UI Text Box
typeinfo

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!



UI Step

Work description

You can enter a comment like this:

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


UI Text Box
typeinfo

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!



UI Step

Additional options


UI Steps


UI Step

Remaining estimate

Choose Auto adjustment







Screenshots



Screencast



Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Use case description, Complexity, Label
sortByTitle
cqllabel = "use-case-workflow" and ancestor = "32211196"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Workflow function

Log work

Use case description

Automatically log work when executing specific transitions.

Label
Complexity

Status
titleIntermediate



Page properties
hiddentrue



Status
Tech review

Status
titletodo

Style guide

Status
titletodo

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged