Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to update custom field using JEMH but NOT add a comment when using ECMA script field processor

Rajat Sethi May 2, 2019

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 

1 answer

1 vote
Deleted user May 2, 2019

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events