logo

NJP

Flow Designer Custom Action to Sync Story to Azure DevOps

Import · Jul 11, 2023 · video

[Music] thank you hey everyone it's Justin thank you for watching and welcome to my house that's Justin's house in this video we're still talking Azure devops in service now but I want to show you the secret behind those workflows that automatically send incidents and customer service tasks over to Azure devops by creating a story and linking it back to their respective records so we're going to stay in service now in this video and I'm going to show you again the workflows this is what they look like and this is the step that I want to explain sync story with Azure devops you can see here it's part of my internet flow if we look at our customer service flow we have the same action number two here sync story with Azure devops and that was key in order to do this to have those things pass back and forth and you don't want to skip this step but let's take a look at how easy that step is to create so you're going to want to create that in your instance by coming up here to this plus sign and going to a new action and when you create a new action you get to specify inputs and some logic to happen with those input and then possibly some outputs from whatever that's doing so this is loading up here and we'll show you in a second once it's fully loaded all right that only took a couple of seconds to load up and notice my first input is going to be the story record this is just a reference to the story table so we're going to make sure that we have a story coming in and it's mandatory and our script step is super super simple now you should know there's a script include with the Agile development integration with Azure devops that uh that we're going to call and they call it agile Ado utils so basically we're going to export the current record to Ado and we're going to provide two inputs The Story Record twice don't ask me why twice I just got to work with twice it's not going to break anything and that's it we're going to pass it that value and I don't even think I have an output on this yeah no output on this we're just going to get the story of record we're gonna run this little quick little script and that's it that's all that's executing in this flow when it's using the sync story with azure devops so we have the create Story Record now that record exists then we pass it to this custom action using the record right here so I just drag over the story record and put it in my inputs for that action and then that script will run and then once that scripts run everything's happening in the background using the scripts includes already provided by servicenow to synchronize that story with Azure devops so that's the magic action happening there you see how easy this is to create it's one line I'll even put it in my notes so you have it and you can grab that and put it in your action and use it to automatically synchronize your incidents your customer service tasks you are fill in the blank task anything that's a task record in service now to synchronize it automatically over to server or to Azure devops I hope you found this video helpful if you did please like Please Subscribe or share with somebody who you think might be interested in integrating servicenow and Azure devops with as much automation as possible and until next time don't forget to always be learning [Music]

View original source

https://www.youtube.com/watch?v=zDX26gNxKDs