RegEx Help - Parsing Email

Bryan Trummer - ReleaseTEAM
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 14, 2024

Hello, my fellow community members,

I am running into a regex issue when trying to parse some information from an email - description of the ticket. I have tried a few things but keep getting errors. I was wondering if anyone has an idea on what to do for this:

The data I am trying to parse: This is how it appears when I do {{issue.description}} as I need to see how the data presents as it shows as a weird format from the email it comes from.

 

*First Name:* Bryan

All I want to do is update the custom field (First Name) with the text string that comes after *First Name:* (there is a space in between * B).

I am unable to get it to update the field or even generate anything in the log as it errors out. Here is my current regex for the edit field action:

{{issue.description.match\*First Name:\*\s+(.*)}}

Once this is resolved I will need to do the same thing for Email and phone number as well.

1 answer

1 accepted

3 votes
Answer accepted
Jim Knepley - ReleaseTEAM
Atlassian Partner
November 15, 2024

Hi @Bryan Trummer - ReleaseTEAM and welcome to other people in the future.

Bryan and I took care of this offline. The input data wasn't as consistent as we had hoped, so the regular expression had to be adapted to match the different variations.

Suggest an answer

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

Atlassian Community Events