Info | ||
---|---|---|
| ||
This routine is available since JJUPINstarting with
|
Syntax
lfHide(field)
Description
Excerpt |
---|
Hides the given field. |
Warning | ||
---|---|---|
| ||
Note that hiding fields on the screen is not a security solution, the field is still present in HTML and can still be inspected via a simple Show page source. Use this feature only to put a certain logic on the screen. |
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
field | String | Yes | Specifies the field to hide. See Standard Variables for available fields. |
Example
If the assignee is not admin, hide the The following code will hide the issue type field from the issue if the assignee is not an admin.
Code Block |
---|
if(assignee != "admin") { lfHide("issueType"); } |
The image shows on the left side shows that the issue type is hidden and on the right side that the assignee is set to "test 1".
...
Now that the field is hidden, you can use lfShow to display it on the issue screen.
...
title | Hiding fields and security |
---|
screen
...
.
...
Additional Fields
In addition to the Supported fields and graphic elements accepted accepted by all Live Fields routines, lfHide can also handle:
Element | Field (to be used in routine) |
---|---|
Details Panel | details_panel |
People Panel | people_panel |
Dates Panel | dates_panel |
Timetracking Panel | timetracking_panel |
Activity Panel | activity_panel |
Comments Tab | comments_tab |
History Tab | history_tab |
Worklog Tab | worklog_tab |
Activity Tab | activity_tab |
All Tab | all_tab |
Add Comment | addComment |
See
...
also
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...