After creating a ticket in JIRA, our workflow is to create a branch in the required project and start the work. Our JIRA projects are linked to the corresponding Bitbucket project. However, while using this feature of create a branch from JIRA it doesn't select the right project it just pop-ups all projects that user has access.
Also, the current setup will checkout the latest version of the particular branch. In case a change is required in an specific commit. this feature is no longer useful. therefore, how can we link a commit to a JIRA ticket after branch is created from Bitbucket or Sourcetree.