Versions Compared

Key

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

...

lfDisable(field)

Description

Excerpt
Disables the given field.


Parameters

ParameterTypeRequiredDescription
fieldStringYesSpecifies the field to disable.

Example

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

...

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

Image RemovedImage Added

Warning
titleKnown Issues

When updating an issue the values for some of the disabled fields will 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 visible on the issue page 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: lfEnable.

See Also:

Filter by label (Content by label)
cqllabel = "live_fields_routines"
labelsjira_comment_routine