Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Page properties
hiddentrue
Tech review

Status
colourGrey
titletodo

Style guide

Status
colourGrey
titleTODO

Page status

Status
colourGrey
titleTODO

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

UI Text Box
sizemedium
typeinfo

Use case

This use case will only display a Calculated field depending the usernames, user roles or user groups that we specify in our expression.

Configuration

UI Steps
UI Step

Create a new Calculated Field (by JWT) custom field and name it appropriately. For the following example, we will use a Calculated date-time field

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

Depending on the functionality you want, the parser expression may change:


Display the Calculated field only to certain users

Code Block
languagebash
linenumberstrue
%{system.currentUser} in ["username1", "username2", "username3"] ? (my_expression) : null
UI Expand
titlemore info...
UI Text Box
typeinfo
If you want to change the expression to hide this Calculated field to those users, you would only have to change in for not not in

Display the Calculated field only to certain user roles

Code Block
languagebash
linenumberstrue
isInRole(%{system.currentUser}, "role1, role2, role3") ? (my_expression) : null
UI Expand
titlemore info...
UI Text Box
typeinfo
If you want to change the expression to hide this Calculated field to those user roles, you would only have to change isInRole for !isInRole

Display the Calculated field only to certain users groups

Code Block
languagebash
linenumberstrue
isInGroup(%{system.currentUser}, "group1, group2, group3") ? (my_expression) : null
UI Expand
titlemore info...
UI Text Box
typeinfo
If you want to change the expression to hide this Calculated field to those user groups, you would only have to change isInGroup for !isInGroup
UI Step

Format type

Choose Date Time Picker

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.

UI Step

Check the results

Once configured and added to an issue screen (e.g. an epic), the result will look like this:


 Related use cases

Page properties report
headingsField type, JWT feature, Label
sortByTitle
cqllabel = "calculated-field" and space = "JWTSDC" and ancestor = "27068727"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue

Page properties
hiddentrue
JWT feature

Image AddedImage Added

Field type

Date-time

Number

Text

Parser functions

isInRole()

isInGroup()

Operators

Label