Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Published in Apps & Integrations

How we use Jira Service Management for our recruitment process! - Part 2

It is never about setting up a process and being done with it. Rather, the focus should always be on optimizing it for the best outcomes. Thus, we didn’t stop at setting up JSM for our recruitment pr...

183 views 0 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you