The use of this routine requires the Power Scripts for Jira add-on be installed and licensed.
Button handy |
---|
blank | true |
---|
color | #0052CC |
---|
name | Send Feedback |
---|
link | https://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=lfHideTab+-+15480548 |
---|
width | auto |
---|
|
Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | lfHideTab(field) | Package | | Alias | | Pkg Usage | | |
...
Hides the specified tab. This routine function only handles the field tab and tabs defined by the user. If you want to hide the tabs from the Activity panel, see lfHide routinefunction.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
field | String | Yes | Specifies the tab to hide. | |
...
If the assignee is not admin, hide the Field Tab from the issue.
Code Block |
---|
|
if(assignee != "admin") {
lfHideTab("Field Tab");
} |
...
Note |
---|
Hiding fields is not a security solution, the field is present in HTML and can still be inspected via a Show page source option. We recommend that you use this routine function only for the cases when you want to add certain logic on the screen only. |
...