One of our customers has added a lot of links to Sharepoint content in his JIRA project, and that Sharepoint instance has moved and is now available under a new URL. Is there a simple way to modify all the links from a source to a target? I know that there are tools available to script something like that, but this will not be an option for him.
Simple would be oversimplifying it (hah see what i did there? )
dump the database
mysqldump --single-transaction --routines -uUsername -pPassword --max-allowed-packet=1G jira > jira.sql
cat jira.sql | sed 's/https:\/\/oldURL\./https:\/\/newURL\./g' | sed 's/http:\/\/oldURL\./http:\/\/newURL\./g' | sed 's/https:\/\/oldURL\//https:\/\/newURL\//g' | sed 's/http:\/\/oldURL\//http:\/\/newURL\//g' > new.jira.sql
What i do here might seem odd, but it's to make sure
All get converted to their new names (short and fully qualified, http and https)
import the new database back
mysql jira -uusername -ppassword < ./new.jira.sql
I'm John Allspaw, co-founder of Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG