JEMH Incoming Mail Handler. Using RegEX for description key field doesn't works.

Somu Ramanathan November 7, 2013

I am using JEMH as Incoming Mail handler. I need to digest based on tag and create a ticket in JIRA.

[Description] This is a description [/Description].

I have written RegEx to extract based on fields and their tags. It works for other fields but it doesn't works for "Description" field alone. Instead whole email gets written to "Description" field.

Is there any way to do it.

2 answers

0 votes
Andy Brook [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.
December 12, 2013

Sorry for the delay, didnt come up under the plugin tag;

So the regexp you have is good, the 'trick' is that you should use 'comment' instead of 'description'. During create it is used as the description and during comment it is used as the comment.

0 votes
Somu Ramanathan November 7, 2013

I have declared the regular expression as ,

description BODY
Description\](.*)\[/Description

Suggest an answer

Log in or Sign up to answer