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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

627 views 0 4
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
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