lfShowFieldMessage

Availability

This routine is available starting with 

  • Power Scripts 2.5
  • katl-commons 2.5

Syntax

lfShowFieldMessage(field, message, messageClass)

Description

Displays a message for the given field.

Parameters

ParameterTypeRequiredDescription
fieldStringYesSpecifies the field for displaying the message
messageStringYesMessage itself
messageClassStringNoMessage type


The messageClass parameter can be:

  • ERROR: will display an error message
  • WARNING: will display a warning message
  • SUCCESS: will display a success message
  • INFO: will display an info message
  • HINT: this message was DEPRECATED, please use the INFO messageClass

If the messageClass is not specified an info message will be displayed as default.


Example

lfShowFieldMessage("assignee", "Assignee changed", "SUCCESS");

On the issue screen, the message will be displayed like in the image below:

On the edit screens the message will be displayed like in the image below:

See also