Forums

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

How to remove [MASSMAIL][JIRA] from scriptrunner custom email subject

Nikita Li
Contributor
January 15, 2019

Hi everyone!

Can you help me to find solution how to change email subject in the script runner custom email listener.

Ill tried override it in the Condition and Configuration section like this:

mail.setSubject("(${issue}) ${issue.summary}")

or in the Subject template section like this:

(${issue}) ${issue.summary}

 Email subject always contains this subject: 
[MASSMAIL][JIRA] *

How can I remove it? ;)

2 answers

0 votes
Davida January 10, 2022

you can use in your script -> mailServer.setPrefix("")

0 votes
Carmen Creswell [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 18, 2019

Hi Nikita, 

This is an email prefix, which is set in the Outgoing Mail section of JIRA. If you go to this section, you can see the settings for the mail server and you can click "Edit" and change the prefix. It cannot be blank, but you can change it to something different, even just a single character. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events