...
Variable | Description | ||
---|---|---|---|
{{issue}} | The issue that triggered the request. (or was in context of the scheduled job). Note: Scheduled iHub integrations will only have an issue if an issue context scope has been defined. | ||
{{now}} |
| ||
{{baseUrl}} |
| ||
{{#comments.all}} | Get all comments for the issue Usage:
| ||
{{comments.latest}} | Get the latest comment object for an issue. Usage:
| ||
{{customfield_id}} | Get custom field name. example;
| ||
{{currentUser}} | Returns the current user as a ApplicationUser object |
String manipulation
Make a variable lowercase or uppercase
Code Block | ||
---|---|---|
| ||
Lowercase
"name":"{{issue.key.toLowerCase}}"
Uppercase
"name":"{{issue.key.toUpperCase}}"
Trim
"name":"{{issue.key.trim}}"
|
Defining custom variables from a response
...
Expand |
---|
Use the variable in an URLTemplate URL: If operated on an issue with the key "QWERY-123" this will be evaluated as https://my_jira_instance_url/rest/api/2/issue/QWERTY-123/comment |
...