Versions Compared

Key

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

This routine is available since 

JJUPIN

starting with 

  • Power Scripts 2.5 (server)
  • SIL Engine (former katl-commons) 2.5

Syntax

lfHide(field)

Description

Excerpt
Hides the given field.
Warning
titleHiding fields and security

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

ParameterTypeRequiredDescription
fieldStringYes

Specifies the field to hide.

See Standard Variables for available fields.

Example

If the assignee is not admin, hide 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".

Note that hiding fields on the screen is not secure. This is not a security solution, the field is still present in HTML and can still be inspected via a simple "Show page source".

...

Now that the field is hidden, you can use lfShow to display it on the issue screen.

...

titleHiding fields and security

screen.

Additional Fields

In addition to the Fields fields and graphic elements supported by Live Fields accepted  accepted by all Live Fields routines, lfHide can also handle:

ElementField (to be used in routine)
Details Paneldetails_panel
People Panelpeople_panel
Dates Paneldates_panel
Timetracking Paneltimetracking_panel
Activity Panelactivity_panel
Comments Tabcomments_tab
History Tabhistory_tab
Worklog Tabworklog_tab
Activity Tabactivity_tab
All Taball_tab
Add CommentaddComment

See

...

also

Filter by label (Content by label)
showLabelsfalse
max35
showSpacefalse
sorttitle
cqllabel = "live_fieldslf_routines"
labelsjira_comment_routine

...