[All Adaptavist Apps]
...
Note that these are only accessible on the object returned by getFieldById.
Method | Description | Example | |||||
---|---|---|---|---|---|---|---|
getValue | Returns the value of a field
|
| |||||
getName | Returns the name of a field Return type: String |
| |||||
getDescription | Returns the description of the field Return type: String |
| |||||
isVisible | Returns whether the field has been hidden Return type: boolean |
| |||||
getId | Returns the id of the field Return type: string |
|
Note these are only accessible on the object returned by getFieldById
and getChange.
Info |
---|
If you are setting a field value which is in Atlassian Doc Format, Atlassian provides a tool that allows you to generate the ADF. You can read more in Atlassian's documentation. |
Method | Description | Example | |||||
---|---|---|---|---|---|---|---|
setName(name) | Updates the field name Parameter: name Parameter type: string |
| |||||
setDescription(desc) | Updates the field description Parameter: desc Parameter type: string |
| |||||
setVisible(visible) | Updates the fields visibility Parameter: visibile Parameter type: boolean |
| |||||
setValue(value) | Updates the field value Parameter: value Parameter type: Depends on the field you’re updating
|
| |||||
setReadOnly(readable) | Sets a field to read-only Parameter: readable Parameter type: boolean |
|
You can use makeRequest
to hit the Jira Cloud REST API.
...