About changing forward email for mail handler (SQL command)

Hi all,

Sometime, for troubleshooting purpose, we will do the db refresh from Production database to Dev database.

After the refresh, some data are using Production data.

So, we have a script which we will execute it after db refresh.

One of the script as below: (this sql is to update the Email Handler's Forward Email from Prod email account to dev email account (devjira@abc.com)

--set the notification addresses for mail services
UPDATE propertystring
SET propertyvalue = 'devjira@abc.com'
WHERE id IN (SELECT id
FROM propertyentry
WHERE property_key = 'forwardEmail'
AND entity_name = 'ServiceConfig'
AND propertytype = 5);

From table, propertystring, I can see the propertyvalue has been updated to devjira@abc.com.

When go to GUI, Log in to Jira > System > Incoming Mail ( we can see lists of Mail Handlers) , at this page, Under Properties, you can see the Forward Email: devjira@abc.com.

But, problem now is if you click on Edit (for any of the Email Handlers), click Next (go to second page for mail Handler configuration), at Forward Email, it will state jira@abc.com(Production email account).

Can anyone advise any field in database that I miss out to update it? Thanks.

3 answers

1 accepted

My team mate found another field that needed to replace, it is propertystring table (field: propertyvalue). Thanks!

Hi,

Did you restart JIRA after running the sql script?

Vijay.

Vijay, yes, restart after the post script running (the sql). Thanks!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,269 views 14 20
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot