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

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?

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}

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

348 views 0 6
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