Versions Compared

Key

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

 

Syntax:

 BA_createTextArea(label, defaultValue, isDisabled [, rows])

Since version 2.0.8 and 2.6.1:

...

Warning

Looking for the documentation on the newest versions of Power Actions for Jira 8? Click here and leave these dusty old pages behind!

Syntax

BA_createTextArea(label, defaultValue, isDisabled [, rows[, isRequired, fieldDescription]])

Description

...

Excerpt

Creates a textarea text area suitable for longer text values like comments.

Parameters

...

Parameter name

Type

Required

Description

label

string

Yes

Field label

defaultValue

string

Yes

Specifies a

label

default value for the

field

text area

nmb
isDisabled
number
booleanYesSpecifies whether the input should be read-only or not.
rowsnumber
of characters returned from the character expression str
No

The initial height of the text area (defaults to 5).
Certain browsers allow resizing.

isRequiredbooleanNoSpecifies whether the field should be marked as required with a dark red asterisk. Note that marking the field as required does not add any validation.
fieldDescriptionstringNoA description of the field to be displayed under the input box.

Return type

...

string []

Examples

...

Example 1:

Code Block
wret = chop("Once upon a time", 6);
print(wret);

...

Code Block
BA_createTextArea("text 1", "", false , 5, false, "description 1");
BA_createTextArea("text 2", "mini textarea", false , 2, false, "description 2");
BA_createTextArea("text 3", "maxi textarea", true , 10, false, "description 3");

Image Added