It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

I have declared the regular expression as ,

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

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.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Teamwork

The Confluence blog has a brand-new look AND brand-new content!

Hey Community,  Last year, the Confluence team shipped "Team Central," a hub of articles and templates on topics like project planning, knowledge sharing, and more.  We're thrilled to...

27 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you