Versions Compared

Key

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


pipe

Page properties
hiddentrue


Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Page status

Status
colourGreen
titledone

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

Panel

On this page

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



UI Text Box
sizemedium
typeinfo

Use case

This calculated field returns theĀ last comment, its author, and a timestamp in a text field.


Image AddedConfiguration

UI Steps


UI Step

Create a new Calculated Text 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

Parsing mode

Select Advanced text as parsing mode.


UI Step

Parser expression

Add the following expression:

Code Block
languagebash
titleText to be parsed for Calculated Text Field:
linenumberstrue
to do%{issue.lastComment} + "<br />-<br />by " + userFullName(%{issue.lastComment.author}) + " at " + dateToString(last(allCommentDates()), LOCAL, USER_LANG)
# Example output:
# Sounds reasonable!
# -
# by John Doe at 17/Nov/20



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, the result will look like this:

Image Added

Image AddedSCREENSHOT



Related use cases

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


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Screenshots
Page properties
hiddentrue


Tech review
JWT feature
status

Image Added

title
Field type
todo
Text
Style guide

Status
titletodo

Page status
Status
colourRed
titlenot complete
Status
titletodo
StatuscolourYellowtitleReady for review
Parser functions

userFullName()

dateToString()

last()

allCommentDates()

Label

Status
colour

Green Statuscolour

titledone
Displays the last comment, its author, and timestamp in a text field.
Field typeText
Use case description

Red
title

flagged Page properties
hiddentrue

staff pick