Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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

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: 

How can I remove it? ;)

2 answers

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

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

Atlassian Community Events