It varies a little bit on whether you're using the Cloud or Server variants of JIRA & Bitbucket. The blow-by-blow Cloud integration guide is here:
https://confluence.atlassian.com/jiracloud/getting-started-w...
Feel free to drop me a line if you run into strife, my email is in my HN profile info.