How to set up Field Rules for Incoming Emails Ticket Creation with JETI

Annie Kemp March 18, 2019

Hello, 

 

I'm having a hard time setting up the Field Rules in order to create a JIRA ticket via email. For example, I'm looking to populate a custom field single text field within the issue. I'm using the following regex: (?i)@link:(.*) and using @Alex: in the email, yet it's not parsing the text. It's only populating within the description box. I've tried to use the Capture Group 1, as well as whole expression.

Any advice on what I can do to get the information to populate within the appropriate field is GREATLY appreciated. Or if this issue has been solved before if you could guide me to the link that'd be appreciated as well. 

Sender:Anyone

Regular Expression: (?i)@link:(.*)

Match in: Body

Use Value: Capture Group 1

Set Issue Field: Link

In: New Issues

Order:1

 

 

 

1 answer

0 votes
Balázs Lakatos [META-INF]
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!
March 20, 2019

Hi Annie, 

I've just tested your configuration in my test environment and parsing was made successfully. 

Could you please just make sure that the "Initialize Issue Fields" option is enabled in the related Mail Handler's configuration (Go to Email This Issue / Mail Handlers, click on the more options (3-dots) button next to the handler, select "Edit" and find "Handler Actions".)

Also, you might want to avoid saving possible whitespaces into the custom field, so I suggest using the following regular expression instead:

(?i)@link:\s*(.*)

Bests,

Balázs

[META-INF]

Annie Kemp March 21, 2019

Thanks for responding! Even with the updated expression that you sent, for some reason the information is still not populating within the field of the ticket. I do have Initialize Issue Fields selected within the mail handler. Do you know of anything else that would be blocking the text from populating in the text field? Let me know if there's any more information that I can provide that will be helpful.

Suggest an answer

Log in or Sign up to answer