Using chained REST integration actions is a powerful way of creating complex integrations with ease. A chained action will operate on the same issue(s) as the parent action. The chained, child action, will have the possibility to use the response from the parent action as variables.
Example:
The general flow of an integration
Create a chained action by clicking the "Create" button. Choose another action as the "Parent" to create this action as a child action.
Set up the child action as by the User Guide
Customize variables from the parent response by mapping a variable name to a JSONPath expression. All variables mapped from response will be available in the variable context scope and can be used using the mustache template.
{ "firstName": "John", "lastName" : "doe", "age" : 26, "address" : { "streetAddress": "naist street", "city" : "Nara", "postalCode" : "630-0192" } } |
|
Ie. posting a comment on the issue in the scope POST URL: Headers
Auth:
Body:
|
A comment: "John doe from Nara says hi!" posted to the issue. Read more in the Mustache Variables and the Scenario Examples Happy ihubbing! |