Extract alert extra properties from email

Ari Raatikainen
Contributor
August 19, 2024

Hi,

I am working on an email integration that generates Alerts from incoming emails.

Please see the attached image.
Screenshot 2024-08-19 130258.png
What smart value or string expression should I use for the 'Server' extra property, so that it extracts the server name from the email body?

For example, if the email body contains the text:

Server: backupserver1

I want the 'Server' property Value to be set to backupserver1."

 

2 answers

2 accepted

1 vote
Answer accepted
Kris Dewachter
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 19, 2024

Hi @Ari Raatikainen ,

Can you try if this works ?

{{message.substringAfter("Server: ")}}

For more text related actions, have a look at this documentation : https://confluence.atlassian.com/automation/jira-smart-values-text-fields-993924863.html

Hope this helps,

Best regards,

Kris

Ari Raatikainen
Contributor
August 19, 2024

Thanx for the tip.. this worked as in the actual case I have more rows
{{message.substringBetween("Server:", "\n")}}

0 votes
Answer accepted
Ingo Volkhausen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 19, 2024

Hi Ari,

what about substring like:


... substringAfter("Server: ") ...

 

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/ 

Ari Raatikainen
Contributor
August 19, 2024

Hi, thanks, see working reply from above

Suggest an answer

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

Atlassian Community Events