Versions Compared

Key

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


pipe

Page properties
hiddentrue


Tech review

Status
colourGreen
titletododone

Style guide

Status
colourYellowGreen
titleReady for reviewdone

Page status

Status
colourRedGreen
titlenot completedone
Screenshots

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

Panel

On this page

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



UI Text Box
sizemedium
typeinfo

Use case

This calculated field returns the number of times a resolved issue has been rejected. 

To do so, we're counting the times the status is changed to "Rejected", but only when a resolution is set.


Image AddedConfiguration

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:
linenumberstrue
to do %{issue.resolution} != null ? count(timesOfTransition("", "Rejected")) : null



UI Step

Display format

UI Steps


UI Step
Choose Number as
Content type

Choose Number


UI Step
Choose the following number

Number format pattern

Enter ### daystimes



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.



UI Step

Check the results

Once configured and added to an issue screen (a parent issue ), the result will look like this:

Image Added

Image Added SCREENSHOT




Related use cases

firstcolumn
Page properties report
Use caseheadingsField type, Use case description, ComplexityJWT feature, Label
sortByTitle
cqllabel = "calculated-field" and space = "JWTSDC" and ancestor = "27066672"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


Displays the number of times a resolved issue has been rejected.
JWT feature

Image Added

Field typeNumber
Parser functions

count()

timesOfTransition()

LabelUse case description