...
It's currently possible to substitute the following:
Request URL
Request headers
Request body
Request Authorization
General usage
Variables are accessed by using the curly braces notation of Mustache.
{{variable_name}}
or for an object, the dot notated getter name without the "get".
Example: {{my_object.name}}
. For the value of the getName()
of the my_object
variable
Value variables (Primitives/Strings ie.)
...
{{object_name.user.name}} - Substitutes the object_name getUsername getUser().getName() value value
Collections
Iterate through lists using the following Mustache pattern:
{{#title}}{{.}}{{/title}}
See
Manage Arrays
for further info
Formatting dates
Date objects can be formatted by using the following syntax. {{#date#date}}{{#format}}java_date_format_pattern{{/format}}{{/date}}
Example:
{{#issue.updated}} {{#format}} yyyy-MM-dd {{/format}} {{/issue.updated}} - Will format issue updated date. (since v.3.8.0)
...
Default variables that are available for every iHub integration request are:
Variable | Description |
---|---|
{{ |
|
|
| |||
|
| ||
|
| ||
| Get all comments for the issue Usage:
| ||
| Get the latest comment object for an issue. Usage:
| ||
| Get custom field name. example;
| ||
| Returns the current user as a ApplicationUser object |
String manipulation
Make a variable lowercase or uppercase
...
Define custom variables by defining them in the variables section of the child action.
...
Set the variable name followed by the JSONPath expression.
...
Automatic response variables
Include Page | ||||
---|---|---|---|---|
|
Issue object
Include Page | ||||
---|---|---|---|---|
|
Parent object
Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Using variables
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 |
...
Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
|