...
lfSet(field, value, [triggerChange]);
Description
Excerpt |
---|
Sets the field with the given values. |
This sets the value in the screen only. It does not set the value on the issue (setting it on the issue require direct access to the field)
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
field | String | Yes | The field to set the value for. |
value | String | Yes | The value to set. It can be a string value or an array with string values. |
triggerChange | Boolean | No | If set to true, triggers the change event when lfSet is used on a field. Available since v. 2.5.6 for Jira 5.x and v. 2.6.1 for Jira 6.x. |
Examples
The following code example sets the priority standard field as Major.
...
You can’t set fields that are not editable. For example, on the issue view screen you can’t set status or resolution fields.
See Also:
Filter by label (Content by label) | ||||
---|---|---|---|---|
|