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

This widget could not be displayed.

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 Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,345 views 8 11
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