ServiceNow to Jira integration using business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2022 11:20 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2022 11:57 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2022 12:01 AM
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.
Nagaraj Tofin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2022 10:47 PM
Hello
How to create business rule and what to write in advanced section of the code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2022 02:48 AM
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
Nagaraj Tofin