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 or create a new transition.


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 furthest last character that will be included in the string summary obtained from the the  substring() function function. If you need to reduce or increase the summary length of the summary, just change this number at the expression's beginning and at the end of the expression for your desired figure.





Screenshots

Image RemovedImage Added




Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel = in ("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

Image Added

Workflow function

Update or copy field values

Parser functions

substring() length()

Label



Page properties
hiddentrue



Status
Tech review

Status
colourYellow
titletodoReady for review

Style guide

Status
colourYellow
titletodoReady for review

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