xmatters / xm-labs-statuspage

Atlassian StatusPage integration to xMatters
MIT License
4 stars 5 forks source link

API call when xMatters notification is triggered #3

Open naveenpochaboina opened 4 years ago

naveenpochaboina commented 4 years ago

Hi,

With this outbound integration, notification recipients can create, update and resolve Statuspage incidents, but how can we do an API call when the notification is triggered from xMatters ? Rather than depending on the recipient responses.

We’ve a custom form (Major Incident Notification) which we use to send messages related to Incidents. Now we want to do an API call to Statuspage when the form is submitted or “send message”. How can we achieve this ?

xMTinkerer commented 4 years ago

You can use the Event Status trigger. Doc'd in the event status updates trigger section.

I haven't updated this to be a flow step, so you'll need to use the integration builder, unless you want to convert it to a flow step. Converting it would give you all the flow designer goodness.

Let me know if that makes sense!

naveenpochaboina commented 4 years ago

27835504-8215-4D05-B01E-2AAF4619437E

I’ve added the highlighted piece of code within the Outbound Integration, but it still did not work.

Can you please help to provide the steps in correct order ?

Thank you in advance!

xMTinkerer commented 4 years ago

Ok, so I had a brain fart and forgot that we've actually ported this Statuspage integration to the Flow Designer. You can see details here: https://help.xmatters.com/ondemand/xmodwelcome/flowdesigner/statuspage-steps.htm That one is showing the flow off of a response trigger, but you could use the Event Status trigger: image

And then build your flow like so: image

However, if you can't or don't want to build it in flow designer, you can select or create a new outbound integration that fires on the event status change on the previous screen: image

That is where you can select the trigger type.