Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Using chained RINT 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. 

...

  • Create a parent action that triggers on newly created issues for a Jira Service Desk project and does something, I.e. creates a new confluence page using fields from the newly created Jira issue.
  • Create a child action that comments back to the issue using the response from the previous action to provide a link in the comment to the newly created Confluence page. 
  • I.e create another child action that changes the status of the issue. 
  • And so on...

Image Added

The general flow of an integration

Creating child actions


Create a chained action by clicking the "Create" button. Choose another action as the "Parent" to create this action as a child action.

...

Info
titleMapping(s)

"first" JSONPath expression "$.firstName"

"last" JSONPath expression "$.lastName"

"address" JSONPath expression "$.firstNameaddress"



Info
titleUsing the mappings

Ie. posting a comment on the issue in the scope

POST URL: your_jira_instance_base_url/rest/api/2/issue/{{issue.key}}/comment

Headers

Content-Type - application/json

Auth:

Basic auth, your Jira user username/pwd

Body: 

{
   "body": "{{first}} {{last}} from {{address.city}} says hi!"
}

...

Info
titleResult

A comment: "John doe from Nara says hi!" posted to the issue. 


Read more in the Mustache Variables and the /wiki/spaces/RIFJ/pages/1105362989


Happy rintingihubbing!