Synchronize Comments Between GitHub Issues and a Jira Comment

You can add a comment in a GitHub issue and update the corresponding comment in Jira.

To perform this operation, you create the GitHub Adapter and Jira Adapter connections in Oracle Integration. Follow the steps below to create an integration.

  1. Create an application integration.
  2. Drag a GitHub Adapter into the integration canvas.
  3. Configure the GitHub Adapter as follows:
    1. On the Basic Info page, provide an endpoint name.
    2. Select the business object. For this example, Repository Events is selected.
    3. Select the trigger operation. For this example, Subscribe to Repository Event is selected.
    4. On the Configuration page, select the required repository from the drop-down list and select Issue comment Event as the event name.
    5. On the Summary page, review your selections.
  4. Drag a Jira Adapter into the integration canvas.
  5. Configure the Jira Adapter as follows:
    1. On the Basic Info page, provide an endpoint name.
    2. On the Action Page, select the action type. For this example, Create or update is selected.
    3. On the Operations page, select the Issue comments object and the Add Comment operation.
    4. On the Summary page, review your selections.
  6. In the mapper, map the required fields.

    The Sources, Mapping canvas, and Target sections are shown. The source Body element under Comment is mapped to the target Body element under Components Schemas Comment.

  7. Click Validate.
    The completed integration looks as follows.


    The integration shows a GitHub Adapter trigger connection, a map action, and a Jira Adapter invoke connection.

  8. When complete, save and activate the integration.
    As a result, when a comment is added to an issue in GitHub, a corresponding comment is added to the related issue in Jira.