How do change the server URL of an application link in Stash?

The DNS rules in our lab have recently changed, so instead of referencing http://server:8080/jira, I now must reference http://server.region.country.company.com:8080/jira. This has broken our application links. I have a lot of projects setup between JIRA and Stash and I don't want to upset the commit, branch, and pull request information that makes the integration so awesome. 

 

I know you can't edit this in the UI, and i imagine this has to be in Stash's database somewhere. The schema is different than JIRA so the instructions found on https://answers.atlassian.com/questions/92503 don't apply. 

I'm poking through the database to find it; If anyone knows off the top of their head, that would be great!

 

Thanks!

1 answer

1 accepted

I found it. It's in Stash's plugin_setting table. 

 

Use the following query to find the correct row, and remember the ID of it:

SELECT id, key_value FROM plugin_setting
WHERE key_value LIKE '%<your old server URL>%';

 

Then use update to change it:

UPDATE plugin_setting SET key_value = '<Your NEW Server URL>'
WHERE id = <ID from query above>;

 

Reboot stash for settings to take effect.

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

26,569 views 26 12
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