Skip to end of banner
Go to start of banner

lfDisable

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

Availability

This routine is available starting with 

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

Syntax

lfDisable(field)

Description

Disables the given field.

Parameters

ParameterTypeRequiredDescription
fieldStringYesSpecifies the field to disable.

Example

Let's assume that once the issueType field is set it should not be changed by anyone except for the admin user. To prevent other users from changing it, and allow them to view it only, use the lfDisable routine.

 if(assignee != "admin") {
    lfDisable("issueType");
 }

Here's how the issue type looks like on the issue screen after calling lfDisable.

Known Issues

When you update an issue, the values for some of the disabled fields might not be saved. For example, you will not be able to update an issue that has the summary field disabled.

If you update an issue that has a Text Field disabled, the custom field will not be visible on the issue page anymore because it was saved with an empty value.  This applies to most custom fields.

If a field is disabled and you want to enable it, use the lfEnable routine.

See also


  • No labels