Have issue created only on regexp match in body

David Friedrich
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 27, 2018

Hi,

I want jemh to create an issue from an email only if a regular expression inside the email's body matches. If it doesn't match, the mail should be deleted. Is that at all possible?

Thanks!

1 answer

0 votes
Mike Harrison _The Plugin People_
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.
January 23, 2019

Yes its possible to control issue creation this way with JEMH. There are several ways this could be done. Here are some that come to mind:

  • Use its Script Field Processor - create a script that looks for a regular expression match, and set the processing outcome depending on the results of the match.
  • Use its Regexp Field Processor to extract content from the email into a custom field using the regular expression. Set that custom field to be required (via the projects field confguration) so that if the regexp does not match the issue will not be created.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events