Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Add Bitbucket commit to issue

LAL
Contributor
December 19, 2024

Is there an ability to link commit to a Jira issue after it has been made/merged?

The problem is that developers forget to add issue numbers to the git commit and then there is no linkage.

 

Can we link the commit to an issue from Jira without needing to touch git?

2 answers

1 accepted

0 votes
Answer accepted
LAL
Contributor
December 20, 2024

Seems like there is no way to add old commit to a new issue.

Linkage between issues and commits needs to be made through Bitbucket commit.

 

Workaround for this seems to be to use "Web link" on the Jira issue. The link is not added as pretty as through commit message, but traceability remains.

0 votes
Rik de Valk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 20, 2024

Hi @LAL , 

I'm not aware of the ability to retrospectively add a Jira issue link to a commit. 

What you can consider is to enforce linking a Jira issue to each commit. 

In your Repository Settings, you can go to Links and toggle the "Require issue keys in commit messages". 

Have a nice day! Rik 

LAL
Contributor
December 20, 2024

Thanks, ill try that.

However, id like to not touch the commit at all. Im talking about Jira, can i link commit to an issue not issue to a commit afterwards.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events