...
Code Block |
---|
setValue("FieldValue"); |
Example Scripts
Using the Issue Context
...
when commenting
...
When Commenting on issues you are able to use the issue
to get values from the issue. for example getting the issue Key, Reporter or any Custom Field. Below are some examples on how to extract specific values.
Note: The issue
context does not apply when creating an issue. This means that the issue
context will return “null”.
Getting the Issue Key
Code Block |
---|
issue.key |
...
Getting a Custom Field Value
In order to get a the value from a Custom Field you will need to define the Custom Field Id for that the relevant field as the field name is not stored within the Issue context. Also this ensures This is to ensure that the value is gathered from the correct Field.
...