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
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.
Parser expression
Depending on the functionality you want, the parser expression may change:
Display the Calculated field only to certain users
%{system.currentUser} in ["username1", "username2", "username3"] ? (my_expression) : null
Display the Calculated field only to certain user roles
isInRole(%{system.currentUser}, "role1, role2, role3") ? (my_expression) : null
Display the Calculated field only to certain users groups
isInGroup(%{system.currentUser}, "group1, group2, group3") ? (my_expression) : null
Format type
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:
Related use cases
If you still have questions, feel free to refer to our support team.