...
- Request URL
- Request headers
- Request body
- Request Authorization
General usage
Variables are accessed by using the curly braces notation of Mustache.
...
Example: {{my_object.name}}
. For the value of the getName()
of the my_object
variable
Value variables (Primitives/Strings ie.)
{{variable}} - Substitutes the variable value
Objects
{{object_name.user.name}} - Substitutes the object_name getUser().getName() value
Collections
Iterate through lists using the following Mustache pattern:
...
See Manage Arrays for further info
Formatting dates
Date objects can be formatted by using the following syntax. {{#date}}{{#format}}java_date_format_pattern{{/format}}{{/date}}
...
{{#issue.updated}} {{#format}} yyyy-MM-dd {{/format}} {{/issue.updated}} - Will format issue updated date. (since v.3.8.0)
Default variables
Default variables that are available for every RINT integration request are:
Variable | Description | ||
---|---|---|---|
{{issue}} | The issue that triggered the request. (or was in context of the scheduled job). Note: Scheduled RINT 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;
|
Defining custom variables from a response
You may define any number of variables from the response of the parent RINT integration that will be available for usage within the child's variable scope.
...
See JSONPath for tutorials examples on how to define your JSON path for your use case
Automatic response variables
Include Page | ||||
---|---|---|---|---|
|
Issue object
Include Page | ||||
---|---|---|---|---|
|
Using variables
Use the variable in an URL
Template URL: https://my_jira_instance_url/rest/api/2/issue/{{issue.key}}/comment
...