ServiceNow & Jira Integration - Sync Story with Jira - Custom Action
[Music] hey everyone it's Justin thank you for watching and welcome to my house that's Justin's house in this video I want to walk you through my custom action for the jira integration that automatically syncs a story I create in a flow with jira without me having to do very much so let's get right to it I wanted to make sure I explained this let me start with the business rules so the application atlassian jira integration for Agile development includes some scheduled jobs or some business rules that fire and one of them is stink sink snot stick a sync story with jira there's also seeing Sprint with jira sync epic with jira that's what's happening when you create a Sprint you create an epic or in my case you create a story and what this schedule what this business rule does is is it runs when a story record is inserted updated or deleted after it's created so once that's done it is going to run this Advanced script here and you can see the code it's going to create a new method for agile zero utilities to export the current record to jira and pass the record that was just created or that fired or triggered the business rule so I wanted to replicate that in my workflows and so all I did was come up here into flow designer and I created a new action that new action needed the story record that we've created so I made an input to reference the story record so you can see here reference dot story if I have typed that out so you can see what that looks like we'll just dot walk our way over there to I think it's a story and scroll down there's RM underscore story right so so that's the reference field that we need to sync in order to pass along to that script and then I have a script set where a script step where I literally just copied line number three new agile new SN agile to your integration to this script and I replaced the current with input dot story underscore record that's it that's the magic behind this particular action and now this action can be used in flow designer when we're creating a story to then go ahead and sync that story with jira because if you create one in flow designer the business rule is not going to fire and that's just to prevent issues with uh business rule triggering flow triggering a business rule triggering a flow and then never ending and kind of getting caught in a loop so that's my way around it that's all I did this code is going to be available on GitHub I'll include a link on screen or down in the description below but I hope you found this video video helpful if you did please like Please Subscribe or share it with somebody who you think might be interested in automating their integration between jira and servicenow and until next time don't forget to always be learning [Music]
https://www.youtube.com/watch?v=MlSH2hEXC20