Hi Community champs,
Can you help me figure out how to update a custom field via emails (JEMH) BUT NOT add a comment to the JIRA issue when using ECMA script field processor.
I have a requirement to use ECMA script in order to set a custom field value that picks up the JIRA issue number from the email subject and adds a keyword (Approved or Denied) from the email body. I am able to set the custom field (PKEY-NNN : Approved) but in addition to this, I see that a comment gets added to the JIRA issue with the content of the email. (Approved/Denied).
What needs to be configured to stop JEMH from adding this comment.
Thanks,
Rajat
Hi Rajat,
You could try overriding the comment in the Script Field Processor, for example you should be able to do the following:
resultMap.put("comment", "");
You would then have an empty comment passed into JEMH, which should result in an empty description on issue creation, and no comment being created on update.
Kind regards,
Reece
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.