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.
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.
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}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.