Change the "From" header of emails sent from ScriptRunner For Jira

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

The solution provided in this article requires the usage of a third-party add-on ScriptRunner For Jira, which is unsupported by Atlassian. If you face any issue while trying this solution, please reach out to the add-on support team for further assistance.

Summary

Want to change the email header coming from ScriptRunner from "ScriptRunner for Jira (Jira)" to a custom from field like "Alpiq Jira Notifications", but only for ScriptRunner.

Environment

Jira Software, Scriptrunner, Cloud

Solution

It is possible to make the change through the scriptrunner by inserting the following custom code.

For the “from” name, in Jira email requests you can set the customFrom.name attribute to the name you want provided that your emails don’t have many actors (which is usually due to the batching).
In the request payload, add the following JSON:

"customFrom": { "name": "Your name", "address": "your email address" }


As of now it may not be possible to do from the Jira side, as we do not have a feature for custom set up.
The only available option is for the admin to make the changes globally as mentioned in the below KB article.
https://confluence.atlassian.com/jirakb/how-to-change-the-sender-s-name-of-the-jira-notifications-967334941.html





Last modified on Apr 28, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.