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

Remove images and links from description field

Lucas de Souza April 5, 2024

Hey everyone I have a hard task.

Windows Defender API sends us an email to our Jira service management, which becomes an incident ticket. The issue is that the description comes in wiki format and the image links are huge.

My question is is there any way to remove the wiki format only on those issues?

I tried {{issue.description.substringBetween("","")}} did not work well or was not reliable.

This is the log action from {{issue.description.text}} 

exampleinf.png

Any help or suggestion would be very much appreciated.
Best, Lucas.

1 answer

0 votes
Brant Schroeder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 20, 2024

@Lucas de Souza I would suggest making a rule on your email server that cleans the emails up before JSM pulls them in as an issue.  This would be easier to do since you can make specific rules for the defender emails.  It will be much harder to make a regex on the email handler to parse the unwanted content.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events