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

0 votes
Accepted answer

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
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

402 views 5 9
Read article

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