If you are using the Atlassian Git clone then just putting the JIRA ticket in the title automagically links the PR to the ticket.