Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Why doesn't the extract function find matches within links in an email message with an image?

Pal Stenslet
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!
November 20, 2024

I have an email integration that receives messages (from Snowflake) that are formatted for human consumption using HTML. Part of the message is a link labelled 'LOG IN' with an URL that contains the Snowflake account name. The integration uses message.extract to include the account name in the alert message. 


message_extract.png

This used to work fine until Snowflake released a version where an image was added to the email messages.

After playing a bit with sending manually edited email messages, I found that links were suppressed from the alert description if I added a small image to the message. (The links are still present in the attached Body.html file.) The alert description is specified as {{message}} in this case.

Why aren't the links included in the incoming message field when the email contains an image?

The below screenshots shows results when sending an email without image, and then the same email with a small image added.

 

without-image.png

 

with_image.png

1 answer

1 vote
Rafael Meira
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 21, 2024

Hey @Pal Stenslet 

This issue likely stems from how Opsgenie parses HTML emails. When an image is added, it might change the HTML structure, affecting how links are extracted.

Did you try:

HTML Parsing: Check if the presence of the image alters the email's HTML structure. Opsgenie's parser might have trouble with complex or nested HTML.

Integration Settings: Look into the message.extract function and any parsing rules. Adjust them to better handle emails with images.

If you are still having issues, my recommendation is to open a formal support ticket here: https://support.atlassian.com/contact/


Best,
Rafa

Suggest an answer

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

Atlassian Community Events