Versions Compared

Key

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

This routine is available since starting with 

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

Syntax

lfDisable(field)

Description

Excerpt
Disables the given field.


Parameters

ParameterTypeRequiredDescription
fieldStringYes

Specifies the field to disable.

See Standard Variables for available fields.

Example

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

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

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

Warning
titleKnown Issues

When updating you update an issue, the values for some of the disabled fields will 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 anymore visibleon 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 next routine: the lfEnable routine.

See

...

also

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

...