This use case will only display a Calculated field depending the usernames, user roles or user groups that we specify in our expression.
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
Providing a description will help you to identify what the custom field does, but this step is optional.
Depending on the functionality you want, the parser expression may change:
%{system.currentUser} in ["username1", "username2", "username3"] ? (my_expression) : null
isInRole(%{system.currentUser}, "role1, role2, role3") ? (my_expression) : null
isInGroup(%{system.currentUser}, "group1, group2, group3") ? (my_expression) : null
Choose Date Time Picker
Add the field to the relevant view screens.
Remember: All calculated fields are read-only and cannot be manually updated.
Check the results
Once configured and added to an issue screen (e.g. an epic), the result will look like this:
Date-time
Number
Text
isInRole()
isInGroup()
Operators