On this page



Use case

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




Configuration


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


Target issue

Choose Current issue.


Fields

Choose Summary.


Value

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


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


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




JWT feature

Workflow function

Update or copy field values

Parser functions

substring() length()

Labelused to mark a use case as staff pick





Status
Tech review

Style guide