ServiceNow to Jira integration using business rule

Shalika
Tera Expert

I am new to integration in ServiceNow. 

I want to integrate SNow and Jira. The use case is such that whenever a incident is created in SNow, it should reflect in Jira. I have created the REST message Successfully. After that, what I need to do?

Should I write a business rule and if yes what would it be like 

12 REPLIES 12

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

there is already Spoke available for JIRA but I believe it has cost involved with it

check these

How To - Configure a bi-directional integration with Jira with integrationHub and Flow Designer

ServiceNow Integration with JIRA | How to integrate ServiceNow and JIRA

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Nagaraj Tofin5
Tera Expert

Hi Shalika,

You've created Rest Message, now you've to create Rest Method (Create, Update, Attachment, Delete etc).

Kindly follow below steps to achieve the integration between ServiceNow and Jira

  • Create async business rule
  • Call a function on script include (to make generic call)
  • Create payload
  • Using given end points call rest message
  • Check for response and update correlation id(Ticket number of Jira)

OR

  • Create flow designer after record inserted on Incident table
  • Create new action to perform Rest call
  • Create Rest Step in that action
  • Give all required info(end points, credentials, MID Server, payload etc.)
  • Triggers the Rest call
  • Check for response and update correlation id(Ticket number of Jira)

 

Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions.

Regards,
Nagaraj Tofin

Hello 

How to create business rule and what to write in advanced section of the code?

Hi Shalika,

Please find below points.

  • Create new business rule and call script include
  • In the script include method set up payload and call REST message to trigger outbound
  • In the REST message design make sure you're using Service Account of Jira which is having proper access to create ticket in Jira

 

Inside Business Rule:

(function executeRule(current, previous /*null when async*/) {

    new scriptIncludeAPIName('functionName');

})(current, previous);

 

Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions

Regards,
Nagaraj Tofin