JEMH - Can JEMH create attachment from e-mail text?

Hi, we receive e-Mails with JEMH to create JIRA tickets. Within the e-mail text, there is huge text from logfiles. Can JEMH take parts of this text to a separate *.txt file as an attachment of the issue it creates? Thanks.

3 answers

1 accepted

Its a nice idea, not currently implemented. How to know exactly where to start within the message content? JEMH can currently attach the 'original' content, mainly meaning HTML retains formatting. To do what you suggest would mean what with a HTML email, to take post-processed content and make an attachment out of it?

Some rules could be to set a size limit, eg 50 lines, of post processed content, if that is exceeded, perhaps the first paragraph is 'retained' with [...] added, and a wiki markup link to download the related extended content in the attachment?

Its a new feature for sure, logged @ https://thepluginpeople.atlassian.net/browse/JEMH-2002

Hi, yes, I think that's what I meant, just process HTML-like.

We use a template like this to send e-mails to JIRA via JEMH. At the end of the message, we add the log protocol, starting with a tag like Log-Diary.

@issueType=Request

@priority=High

@Company= Customer

@CustomField=#$$Ticket-ID$$#



@description=whatever



Log-Diary:

part of the log-protocol ...


Would be nice, to have it although I am not sure, weather new versions of JEMH will be compatible to JIRA 5.1. I found no matrix on add-on-overview.

Thanks.

Hmm, well, potentially, something 'similar' to the bodyDelimiterRegexp could be added, allowing you to match on \nLog-Diary:\n , this and all following content could then be extracted and stored as an attachment. I'll add this to the issue.

marvellous, thank you!

np, please mark whichever answer was correct, thanks.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

121 views 4 9
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you