How to integrate Jira with ServiceNow in 5 minutes!

This will be the first article in a series of articles on how to integrate Jira with other systems in less than 5 minutes.

I know that 5 minutes is not much, but if you have your ServiceNow instance up and running and know how to setup Oauth2 applications in ServiceNow you can do this in less than 3 minutes!

First, get the Jira app, "Integrations Hub for Jira" Get it here: https://marketplace.atlassian.com/1220905

Second, create an Oauth2 connection to ServiceNow

  • In ServiceNow, create an Oauth2 application. Never done this before? Just follow our guide here: https://doc.rixter.se/display/RIFJ/ServiceNow It's easy-peasy!
  • Now click the "lock" icon in the icon-menu, enter a name and click "Add authentication"

  • Select Authorization code and fill in your client id, secret ie.

Third, now create an integration action that uses this Oauth2 client to create a ServiceNow incident.

  • Click the "Create" button to create a new Integrations Hub for Jira action.

  • Fill in the form that pops up, use template "default" and content-type "application/json"

  • Fill in the integration details such as ServiceNow URL

  • The body section contains the POST body that goes to ServiceNow. In this example, we're posting the Jira Issues summary and description to ServiceNow. Read up on the full list of variables that can be used here: https://doc.rixter.se/display/RIFJ/User+Guide

And finally, set up how to trigger this integration.

  • Triggering an integration can be done in many various ways. Such as, a Jira event, schedule a cron job that runs this on a scheduled basis. From the post functions section, create a post-function or set up an incoming request rule that triggers this integration.
  • In this case, we have chosen to trigger this for all newly created Jira issues

Now, test your integration by creating a new Jira issue!

Happy hacking!