Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
UI Text Box
sizemedium
typeinfo

Use case

This calculated field returns the number of hours in which an issue has had some been on the current priority.

Image ModifiedConfiguration

UI Steps
UI Step

Create a new Calculated Number Field (by JWT) custom field and name it properly.

UI Text Box
typetip

Providing a description will help you to identify what the custom field does but this step is optional.

UI Step

Parser expression

Add the following expression:

Code Block
languagebash
titleMath expression for Calculated Number field:
timeInValue(%{issue.priority},  %{seed.text} = %{issue.priority}) / {HOUR}
UI Expand
titleApart from a time macro, the following functions are used:
UI Step

Display format

UI Steps
UI Step

Content type

Choose Number

UI Step

Number format pattern

Choose

Code Block
languagebash
### hours
UI Step

Check the parameter Uninitialized when calculated value is zero

UI Step

Add the field to the relevant view screens.

UI Text Box
typenote

Remember: All calculated fields are read-only and cannot be manually updated on a create or edit screen.


Image ModifiedScreenshots



Image ModifiedScreencast



Image ModifiedRelated use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel = "use-case-workflow"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue

Page properties
hiddentrue
JWT feature
Workflow function

Parser functions
Label
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