Jira Integration REST API using OAuth2

markosajic
Tera Contributor

Hello 🙂
We have successfully completed Integration between our SN and Jira using Jira Spoke (using OAuth2) by following these instructions: https://www.servicenow.com/docs/bundle/yokohama-integrate-applications/page/administer/integrationhu...
We are able to create Cases in Jira using Flow Designer. That works fine.

But now we would also like to send some custom REST Messages. Doing the same setup (same Auth profiles and scopes), we always get 401 error ' Client must be authenticated to access this resource.'

markosajic_0-1740666813535.png

markosajic_1-1740667118897.png

 

How come Flow designer works but we can't get the Rest Message to work using same available OAuth Tokens?

 

2 REPLIES 2

bigfissy
Kilo Sage
Kilo Sage

@markosajic have you also setup inbound connection from Jira to ServiceNow? 

Yes, the problem here was that we needed separate token when using REST message, if you wont to use it outside of Flow (within script include for example). Everything works now since we generated a new token directly from REST Message.