Integration & IT Modernization

ServiceNow and Jira Integration

Istock 960790462 (1)

Why Integrate Jira with ServiceNow?

Teams using Jira and ServiceNow will collect and organize large amounts of data. Much of this data is useful to other teams. If two teams use these platforms separately, connecting them can benefit an organization.

Integrating the platforms allows you to share data automatically and precisely control how the data exchange occurs. Manual exchange of data between two systems will decrease.

Use Cases:

  1. Integrate Project in ServiceNow and Jira.
  2. View available Jira projects and boards in ServiceNow.
  3. Perform a bulk import of records from Jira to ServiceNow.
  4. Perform single record updates between Jira and ServiceNow.
  5. Avoid duplicating record update entries in Jira and ServiceNow.
  6. Plan, track, and update your tasks from a single application.

Methods used for Integration

  1. ServiceNow Rest API: ServiceNow Outbound Rest API can be used to create issues and update issues in Jira. Scripted Rest API needs for Jira to ServiceNow communication.
  2. ServiceNow Integration Hub: Jira Spoke can be used for managing issues, users, stories, and groups in Jira. Predefined sub-flows can be used for Jira to ServiceNow communication.

Method 1 – ServiceNow Rest API

Design Diagram:

Restjira

1. ServiceNow to Jira Communication:

Need to create Rest Outbound messages for different endpoints, few examples are mentioned below.

Operation URL Method
Create Issue https:// <Jira URL>/rest/api/3/issue POST
Update Issue https://<JiraURL>/rest/api/3/issue/{issueIdOrKey} PUT
Get Issue https://<JiraURL>/rest/api/3/issue/{issueIdOrKey} GET
Delete Issue https:// <Jira URL>/rest/api/3/issue/{issueIdOrKey} DELETE
  1. Navigate to: System Web Services > Outbound > Rest Message > Create New
  2. Below is example of REST message for Creating issue in Jira.

Screenshot1

2. Jira to ServiceNow communication:

  1. Need to use Scripted Rest API to generate call-back URL, which can is used in Webhook creation in Jira.
  2. Navigate to: System web service > Scripted Rest API > click New
  3. Fill in details and submit.
  4. In Related List > Resources > Create New, below is an example of the update issue in ServiceNow from Jira.

Screenshot2

Method 2 – ServiceNow IntegrationHub and Jira Spoke

Design Diagram:

Jiracloud

  1. Need Jira Spoke in ServiceNow Instance.
  2. Need Integration Hub Professional pack in ServiceNow Instance.
  3. Flow Designer can be used for operations in Sprint Management, Project Management, Issue Management, etc.

Jira can be on-premise and Cloud, integration with ServiceNow will differ depending on the type.

  1. ServiceNow and Jira Cloud Integration.
  2. ServiceNow and Jira on Premise Integration.

1. ServiceNow to Jira Communication:

  1. Install the Jira Spoke.
  2. ServiceNow supports Basic Authentication to integrate with Jira.
  3. Navigate to IntegrationHub > Credentials > Jira.
  4. Provide User ID and Password of “Service Account” of Jira.
  5. Screenshot3Navigate to IntegrationHub > Connection & Credential Aliases > Jira.
  6. Name – any meaningful Name.
  7. Credentials – Provide credentials created in step 3.
  8. Connection URL – Jira Instance URL
  9. Use Mid Server – True for Jira on Premise and False for Jira Cloud.Screenshot4
  10. As Jira spoke installed, we can see many options performed in Jira from the ServiceNow Flow designer.Screenshot5
  11. Below is an example of the creation of an issue in Jira form Flow Designer using spoke.

Screenshot6

2. Jira to ServiceNow communication:

  1. Jira to ServiceNow Integration will not change based on Jira type.
  2. Webhooks are used for Jira to ServiceNow connection.
  3. Navigate to Jira > Jira Webhook Registry.
  4. Create a new record with the token, and click on “Callback URL” to get the webhook URL.
    Screenshot7
  5. Create Webhook in Jira with the above Callback URL.
  6. With trigger from Jira, in ServiceNow, we need to create a Routing Policy to trigger different Sub flow to perform a particular action.
  7. Navigate to Jira > Jira Webhook Routing Policies. Create a new policy.
  8. Label – Name of Policy
  9. Condition – After satisfying the specified condition mentioned flow will trigger
  10. Answer – Flow which needs to be triggered for action.
    Screenshot8
  11. Below is an example of updating demand in ServiceNow from Jira issue fields.

Screenshot9

Advantage of using Jira Spoke over Rest API

  1. Predefined actions are available in Flow Designer to perform operations and communicate with Jira issues, users, etc.
  2. The user-friendly language used to describe flows helps non-technical users to better understand.
  3. Reusable actions in flow cut down development costs and save time.
  4. Upgrade safe and reduces costs involved with ServiceNow platform replacing complex custom scripts.
  5. Low code to no-code environment for integration.

 

Thoughts on “ServiceNow and Jira Integration”

  1. Mahesh Mudragaddam

    Great to See this Post to showcase the capability on Integration – Thank you Narsimharmurty Dewarkonda

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Narsimhamurty Dewarkonda

Narsimhamurty is a Senior Technical Consultant at Perficient, works on ServiceNow platform. He is ServiceNow CSA and CIS – Discovery certified. He has experience in ServiceNow Modules like ITSM, ITOM, and ServiceNow Integrations.

More from this Author

Subscribe to the Weekly Blog Digest:

Sign Up
Follow Us
TwitterLinkedinFacebookYoutubeInstagram