-
Type:
Suggestion
-
Resolution: Unresolved
-
Component/s: Integrations - 3rd-party - Email
-
None
-
1
User Problem
A customer would like to add tags to an alert created by the Email integration via the Email body itself.
Suggested Solution
Add functionality for the email integration to read and add tags added after "Tags:" and parse each separated by a comma into a separate tag.
Ie. Allow customers to send:
- Tags: this is my first tag, this is my second tag, this is my third tag
And have Opsgenie add "This is my first tag" into one tag field, "This is my second tag" into another, and "This is my third tag" into another.
Alternatively allow regex matching to to create an new tag for each match that is returned, so a regex of ".* tag=([a-z]) ." would create multiple tags (xyz, abc) if the email contained text like "tag=xyz something=123 tag=abc "
Work Around
Regex can be used to parse tags, however, the customer needs to add enough expressions to manage all the tags they may use.
E.g. if they'd like to generally add 3 tags, they could use:
{{ message.substringBetween("Tag1:",",") }}
{{ message.substringBetween("Tag2:",",") }}
{{ message.substringBetween("Tag3:",",") }}
And format the email to match.