How to add existing Jira OAuth connection as second option in IntegrationHub

Vincent Lee
Tera Expert

Hi all,

I currently have one Jira instance (let's call it Black) already setup via OAuth 2.0 that I can utilize to send REST calls to.

 

VincentLee_1-1678294695052.png

 

We have another Jira instance (let's call it Red) that I am trying to have my flow dynamically choose between based on the project selected on a form. The Red instance is setup in Connections & Credentials just like the Black instance: 

VincentLee_2-1678294818809.png

 

However, as seen in the first screenshot, the Red instance is not an available connection and therefore Flow Designer actions run only to the Black instance. The Black connection was added first and is "default" (though I don't see where this is defined).

 

Following the multiple connections documentation, I attempted to add the existing Red connection, but it appears like it this is setting up a new connection and not adding the existing one. This is using the Jira Spoke essentially out of box. I did need to change the Configuration Template from "Basic Auth with API Key" to "OAuth Authorization Code" since I am using OAuth here.

 

Any help regarding this would be greatly appreciated!

1 ACCEPTED SOLUTION

Vincent Lee
Tera Expert

To help any others that may stumble upon this, I was able to get it to work by making the second connection a child alias. I'm not sure if this is the optimal way to do it, but after setting it this way, I am able to manage the connections on a per flow basis. Many of the actions have to be copied to support multiple connections, though.

 

Introduction to credentials, connections, and aliases (servicenow.com)

View solution in original post

7 REPLIES 7

Sankar N
Kilo Guru

To add an existing OAuth connection as a second option in IntegrationHub of ServiceNow, you can follow these steps:

  1. Navigate to the IntegrationHub application in ServiceNow and click on the "Actions" button in the top left corner.

  2. Select "Designer" from the dropdown menu to open the IntegrationHub Designer.

  3. In the IntegrationHub Designer, click on the "Actions" button in the top right corner and select "Create Action".

  4. In the "Create Action" dialog, enter a name and description for the new action and select the type of action you want to create.

  5. Under the "Authentication" section, click on the "Select OAuth Connection" dropdown menu and select "Add OAuth Connection".

  6. In the "Add OAuth Connection" dialog, select the existing OAuth connection that you want to add as the second option.

  7. Click "Submit" to save the changes and add the OAuth connection as a second option for the action.

  8. You can now use the new action with the two OAuth connections in your IntegrationHub flows.

Thanks @Sankar N for your time and response!

I'm having some difficulty following your instructions. When I go to the IntegrationHub application, I don't see the ability to Create Action, only a new integration.

VincentLee_0-1678467122933.png

If I choose that, giving a name and description, this is what I see further:

VincentLee_1-1678467129962.png

If I instead choose to go via Flow Designer to create a new action, there also is not an authentication section:

VincentLee_2-1678467188776.png

Perhaps I am following the wrong modules?

VincentLee_3-1678467209233.png

Thanks again!

 

Sankar N
Kilo Guru

@Vincent Lee 

Please mark my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Sankar N
Kilo Guru

I was referring the flow designer actually, please create a new action and follow step 5 to 8 in my above comment.