3 Install and Configure the Recipe

On your Oracle Integration instance, install the recipe to deploy and configure the integration and associated resources.

  1. On the Oracle Integration Home page, in the Use a recipe/accelerator section, click View all.
  2. Find the recipe you want to install, then click Get.

    A message confirms that the recipe was successfully installed, and the recipe card shows In use.

  3. Click Configure Configure icon on the recipe to configure its resources.

    The project workspace opens, displaying all the resources of the recipe. Configure the following resources before you activate and run the recipe.

Configure the Oracle REST Primavera Connection

  1. In the Connections section, click the connection name.
  2. In the Properties section, enter the following details:
    Field Information to Enter
    Connection Type Leave REST API Base URL selected.
    Connection URL Enter your Oracle Primavera Cloud instance URL.
  3. In the Security section, enter the following details:
    Field Information to Enter
    Security Policy Select OAuth Client Credentials.
    Access Token URI Enter https://<Primavera_Host_Name>/primediscovery/apitoken/request.
    Client Id Enter the username of your Oracle Primavera Cloud instance.
    Client Secret Enter the password of your Oracle Primavera Cloud instance.
    Scope Enter http://{Primavera_Host_Name}/api.
    Client Authentication Select Send client credentials as basic auth header.
  4. Click Save. If prompted, click Save again.
  5. Click Test to ensure that your connection is successfully configured. In the resulting dialog, click Test again.

    A message confirms if your test is successful.

  6. To return to the project workspace, click Go back Back icon.

Configure the Oracle JIRA Connection

  1. In the Connections section, click the connection name.
  2. In the Properties section, enter the Atlassian host name.
  3. In the Security section, enter the following details:
    Field Information to Enter
    Security Policy Select Authorization Code Credentials.
    Client ID Enter the integration key of the OAuth application created in Jira. See Configure Jira.
    Client Secret Enter the client secret of the OAuth application created in Jira.
    Scope Enter read:jira-work, manage:jira-project, write:jira-work, manage:jira-configuration, read:jira-user.
  4. Click Save. If prompted, click Save again.
  5. Click Test to ensure that your connection is successfully configured. In the resulting dialog, click Test again.

    A message confirms if your test is successful.

  6. To return to the project workspace, click Go back Back icon.

Configure the Lookup Table

Edit the following lookup tables to map the fields between your Jira and Oracle Primavera Cloud instances.

  • ORACLE-BRT-PRIMAVERA_CONSTANTS: Used to map the fields between Jira and Oracle Primavera Cloud.
  • ORACLE-BRT-JIRA_PRIMAVERA_STATUS: Used to map the status of the issue in Jira with the status of the corresponding activity in Oracle Primavera Cloud.
  1. In the Lookups section, click the lookup name.
  2. To configure the ORACLE-BRT-PRIMAVERA_CONSTANTS lookup table:
    1. In the Name column, enter the name of the Oracle Primavera Cloud field you want to map.
    2. In the Value column, enter the name of the field in Jira to which the Oracle Primavera Cloud field has to be mapped.
  3. To configure the ORACLE-BRT-JIRA_PRIMAVERA_STATUS lookup table:
    1. In the JIRA_STATUS column, enter the status of the issue in Jira.
    2. In the PRIMAVERA_STATUS column, enter the status of the corresponding activity in Oracle Primavera Cloud.
  4. Click Save. If prompted, click Save again.
  5. To return to the project workspace, click Go back Back icon.

Configure the Integration Flow

Update the integration flow of the recipe (Oracle Jira Primavera Task Activity Sync) with the ID of the custom field you created in Jira.

  1. In the Integrations section, click the integration flow name.
  2. Configure the Switch condition.
    1. On the integration canvas, click the first switch case (IF customfield_10064), and then click Actions Actions icon and select Edit.
    2. On the resulting page, select Expression Mode. In the Source section, search and select the ID of the custom field you created in Jira previously. See Configure Jira.
    3. Click the move button to add the custom field to the expression editor.
    4. Click Validate, and then Close.
  3. Update the data mapping.
    1. On the integration canvas, click the Map to updateActivity element, and then click Actions Actions icon and select Edit to open the mapper.
    2. In the data mapper, under Source section search for the ID of the custom field you created in Jira previously and map it to Activity Code within the Request Wrapper.
    3. Click Validate, and then Close.
  4. To return to the project workspace, click Go back Back icon.