Versions Compared

Key

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


Panel

On this page

Table of Contents
maxLevel2
exclude(On this page|Use case).*
stylecircle
typeflat
separatorpipe



UI Text Box
sizemedium
typeinfo

Use case

In this example, the Log work post function will be used to log work on another ticket.

In this case there is an a Jira ticket for each employee. In addition, "Absence" tickets can be created for a specific day. If this ticket gets approved, 8 hours will be logged on the related employee ticket.

The employee ticket must have the summary "Employee <username>".


Prerequisites

First, we have to create a date custom field to enter the absence day.

UI Expand
titleSet up the custom field


UI Steps


UI Step

Create a Date Picker custom field

Name: Absence day


UI Step

Add the created custom field to the screen(s) of the absence ticket.




Configuration

UI Steps


UI Step

Add the Log work post function to the desired transition or create a new transition.


UI Step

Target issue

Choose Set target issue manually


UI Step

Expression

Enter the following expression with mode set to JQL:

Code Block
linenumberstrue
summary ~ "Employee %{issue.reporter}"



UI Step

Time spent

Enter the following number:

Code Block
480

Since the time spent must be entered in minutes and 8h correspond to 480 minutes, this number has to be entered.


UI Step

Starting date-time

Enter the following expression:

Code Block
linenumberstrue
stringToDate(%{issue.cfnnnnn} + " 08:00", "yyyy-MM-dd hh:mm")


UI Text Box
typeinfo

cfnnnnn is the field code for the Absence day custom field we've previously created.

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



UI Step

Work description

Enter a description like the following:

Code Block
Absence

Feel free to change the description according to your needs!

Additional options

UI Step

Remaining estimate

Choose Auto adjustment


UI Step

Conditional execution

Finally, we add a conditional execution so that the post function will only be executed if the issue's summary is "Absence".

Code Block
linenumberstrue
%{issue.summary} ~ "Absence"





Screenshots



Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, 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

Parser functionsstringToDate()
Label



Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titletododone

Style guide

Status
colourGreen
titledone

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