Can JEMH write an incoming email as a comment and to a custom field?

I've been asked to implement a process whereby an engineer can send an email to our JIRA server and have that email added as a comment to a specified issue (straightforward) *AND* have that comment copied to a custom field on that issue (not straightforward).

Is this something that JEMH can do if I used that instead of the normal JIRA email handler?

Thanks.

3 answers

This widget could not be displayed.

I have been stewing over this question for a while, and I don't think that this is going to be possible. My first thought was to use directives, but I don't think that will work. I was also tempted to suggest that the comment event may work, but seeing as you only wanted it to occur when emailed in, I'm certain that won't work. Do you have a particular use case? There may be a different way that JEMH can be configured to meet the need that you have?

This widget could not be displayed.

JEMH cant currently also copy comments to custom fields (but its not been asked for before!). One possibility is to enable the Comment Prefix (indicating in the comment that it came from email) and use a PostFunction with ScriptRunner to check the text, and if it came from email, update the custom field.

Another way using JEMH alone is manual, with two Directives, one to set Your Field, one to add the Comment, effectively the same information, but gives opportunity to add extra layout:

@Your Field = This is some

multiline content

@comment = See above: {quote}

<copy/paste>

{quote}

This widget could not be displayed.

I want to do somthing similar to what you described. I want a custom field that will be updated each time a non jira user reply from email- adds a comment to the issue. A field that will be used as a verification or Indicatin that the comment came from email. Two questions:

1. Where is the Comment Perfix in the JEMH configuration?

2. The comment from non-jira users could come in sevral transitions, so I have a problem putting Post Function, I want it to be updated as a flag field that exists for each issue. Is it possibale, and if it is, how do I do it?

Thanks.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

511 views 3 18
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