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 the following use case the summary of an issue is shortened to a maximum number of characters.




Configuration

UI Steps


UI Step

Add the Update or copy field values post function to the Create issue transition in the second position.


UI Step

Target issue

Choose Current issue.


UI Step

Fields

Choose Summary.


UI Step

Value

In the popup, choose the value Set field value manually (parser expression) and write below the following expression in Advanced Text mode.


Code Block
length(%{issue.summary})>99? substring(%{issue.summary}, 0,99) : %{issue.summary}


UI Text Box
sizemedium
typeinfo

The number 99 represents the position of the last character that will be included in the summary obtained from the  substring() function. If you need to reduce or increase the summary length, just change this number at the expression's beginning and end.





Screenshots




Related use cases

Image RemovedRelated use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel = in ("use-case-workflow" and ancestor = "27067093"
Excerpt IncludeDECADIS:Contact supportDECADIS:Contact supportnopaneltrue

Page properties
hiddentrue
JWT feature

Image Removed

Workflow function

Update or copy field values

Parser functions

substring()

Label Page properties
hiddentrue
StatusTech review

Status
colourYellow
titleReady for review

Style guide

Status
colourYellow
titleReady for review

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
separatorpipe

UI Text Box
sizemedium
typeinfo

Use case

In the following use case the summary of an issue is shortened to a maximum number of characters.

Image RemovedConfiguration

UI Steps
UI Step

Add the Update or copy field values post function to the Create issue transition in the second position.

UI Step

Target issue

Choose Current issue.

UI Step

Fields

Choose Summary.

UI Step

Value

In the popup, choose the value Set field value manually (parser expression) and write below the following expression in Advanced Text mode.

Code Block
length(%{issue.summary})>99? substring(%{issue.summary}, 0,99) : %{issue.summary}
UI Text Box
sizemedium
typeinfo

The number 99 represents the position of the last character that will be included in the summary obtained from the  substring() function. If you need to reduce or increase the summary length, just change this number at the expression's beginning and end.

Image RemovedScreenshots

Image Removed

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel = "use-case-workflow" ,"parser_func_length","parser_func_substring") and ancestor = "27067093"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Workflow function

Update or copy field values

Parser functions

substring() length()

Label



Page properties
hiddentrue



Status
Tech review

Status
colourYellow
titleReady for review

Style guide

Status
colourYellow
titleReady for review

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