OpsGenie Email Integration Alert add attachment to Service NOW Incident

Godfrey, Scott
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 30, 2020

We need to create a process to take the email attachment from an Email Integration Alert and add it to the Incident ticket that was created for the alert.  We have the API calls to add it via Service NOW and we were thinking about doing this via an OEC connector.

Has anyone done this?  Does anyone have an OEC action script that could do this?

1 answer

0 votes
Allen Barnard
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 3, 2020

Hi Scott,

A script for that specific use case does not exist however I have good news, our API supports a call that generates a download URL link so that you can download the attachment.

Use this documentation to make the API call that returns a JSON that contains the download URL. From there the next steps depends on the scripting language you choose to write your OEC script in, the basic logic will be to parse the JSON response and extract the URL as a variable then download it to the server running OEC, once it has completed downloading store the local file path in a variable so that you can pass it to your Service NOW API call.

I hope this helps.

 

Allen. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events