• 85
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Atlassian status as of Jan 2022

      Hi everyone,

      Thanks for voting and commenting on this suggestion. Your input in comments helps us understand how this affects you and what you're hoping to accomplish with Bitbucket Data Center. We understand that this capability is highly desirable. Unfortunately, we are not planning to address this suggestion in the next 12 months.

      Meantime, we hope everyone might consider using a built-in Jira issue checker that was shipped in Bitbucket Data Center 7.16. It works as a gatekeeper checking that each commit message contains a reference of a valid Jira issue. If no Jira issues are mentioned, or those issue doesn't exist in Jira, then commit gets rejected. We believe that Jira issue checker can decrease occurrence of situations when you have to modify links between Jira issues and commits. If the built-in feature isn't enough for your use case, we highly recommend checking one of established commit checker apps in the Marketplace.

      I understand that this may be disappointing, but it’s important for us to be open, honest, and transparent with our customers. We collect feedback from many different sources and spend significant amount of time determining our investments in Bitbucket Data Center. In the last year, we have resolved many of the highly voted suggestions like Reviewer groups, Pull request templates, capability to enable/disable source branch deletion on merging pull requests and our upcoming roadmap includes a number of other top voted suggestions, including repository archiving. Please check out our public roadmap for more details on the coming soon and future items.

      Cheers,

      Anton Genkin
      Product Manager - Bitbucket Data Center & Server

      Original description:

      It should be possible to change the link of a STASH commit to a JIRA issue after it has been pushed to the git server. This way, for example, a wrong or missing commit <-> issue link can be modified or added afterwards.

          Form Name

            [BSERV-3628] Modify JIRA link after commit

            We have been facing similar issue like Aaron jensen faced. As a part of decomm of Jira server (EOL of server license), we migrate one project from Jira server to Jira data center with new project key but there was old project key ref were there in commit in user's Bitbucket repo so after migration, it breaks Jira link if user try to click on it

            Thank you to give priority to add this feature in Bitbucket

            brijeshkumar.patel added a comment - We have been facing similar issue like Aaron jensen faced. As a part of decomm of Jira server (EOL of server license), we migrate one project from Jira server to Jira data center with new project key but there was old project key ref were there in commit in user's Bitbucket repo so after migration, it breaks Jira link if user try to click on it Thank you to give priority to add this feature in Bitbucket

            Another use case: we just migrated our Jira instance to another instance. The old Jira and new Jira both had a project with the same key. When our project was migrated, it got a new key. We now have a repository full of commits with the old key that link to tickets in the new Jira that are completely unrelated. This actually happened with three of our Jira projects, so now we've got commits scattered across many of our repositories that contain links to unrelated tickets.

            Aaron Jensen added a comment - Another use case: we just migrated our Jira instance to another instance. The old Jira and new Jira both had a project with the same key. When our project was migrated, it got a new key. We now have a repository full of commits with the old key that link to tickets in the new Jira that are completely unrelated. This actually happened with three of our Jira projects, so now we've got commits scattered across many of our repositories that contain links to unrelated tickets.

            Sam Li added a comment -

            +1

            Sam Li added a comment - +1

            Jim Doyle added a comment -

            I think that git notes provide an ideal backend for this.

            I agree.  We have been using Git Notes to store metadata like this for a couple years now, and have begun storing Jira issue keys in Git Notes as well.  While we've got some custom reporting tools around this data, it would be much cleaner if Bitbucket's own Jira integration would leverage this data.  Another advantage of Git Notes is that their history is also captured in Git, should you want to see what the notes value was before, and who changed it and when.

             

            Jim Doyle added a comment - I think that  git notes  provide an ideal backend for this. I agree.  We have been using Git Notes to store metadata like this for a couple years now, and have begun storing Jira issue keys in Git Notes as well.  While we've got some custom reporting tools around this data, it would be much cleaner if Bitbucket's own Jira integration would leverage this data.  Another advantage of Git Notes is that their history is also captured in Git, should you want to see what the notes value was before, and who changed it and when.  

            datecnl added a comment - - edited

            Under development, the Jira issue can contain a link to branches. It would be great if a link to commits can be manually added. 
            The commit message would do this automatically, but with a commit edit field you could add multiple commits to a Jira issue, and remove them. This should then be reflected on the Bitbucket side. 

            datecnl added a comment - - edited Under development, the Jira issue can contain a link to branches. It would be great if a link to commits can be manually added.  The commit message would do this automatically, but with a commit edit field you could add multiple commits to a Jira issue, and remove them. This should then be reflected on the Bitbucket side. 

            Just ran into the problem of an incorrect key put in a commit message from several months back, with no safe way to rebase and rewrite the message.

            Really, the commit message shouldn't be the single source of truth for related Jira issues. The process should be:

            1. Commit is pushed to Bitbucket
            2. Bitbucket scans commit message and collects Jira issue keys
            3. Bitbucket checks keys for validity (BSERV-2470) and adds them to a table if valid, including from multiple instances (BSERV-10537)
            4. Triggers to Jira and related systems are fired as necessary for each new issue added to that list

            Users with Repo Admin/Write permissions can then add or remove Jira issues manually (and via APIs). This would also fix the problem of multiple Jira instances as users could remove the links that aren't relevant.

            Jason Kemp added a comment - Just ran into the problem of an incorrect key put in a commit message from several months back, with no safe way to rebase and rewrite the message. Really, the commit message shouldn't be the single source of truth for related Jira issues. The process should be: Commit is pushed to Bitbucket Bitbucket scans commit message and collects Jira issue keys Bitbucket checks keys for validity ( BSERV-2470 ) and adds them to a table if valid, including from multiple instances ( BSERV-10537 ) Triggers to Jira and related systems are fired as necessary for each new issue added to that list Users with Repo Admin/Write permissions can then add or remove Jira issues manually (and via APIs). This would also fix the problem of multiple Jira instances as users could remove the links that aren't relevant.

            +1

            Related to JSWSERVER-14378.

            Kalle Niemitalo added a comment - Related to JSWSERVER-14378 .

            Kalle Niemitalo added a comment - - edited

            I recently migrated the version history of a project from a non-Git system to JIRA and Bitbucket Server. The old commit messages referred to issues in the old bug tracker but JIRA assigned its own issue keys. To make JIRA display the Git commits that relate to each issue, I ended up appending the JIRA issue keys to the commit messages after I converted the history to Git. However, some of the old commit messages refer to issues in another project that has not been converted yet, so I don't know what their JIRA issue keys will be. When that project is eventually converted, I will not be able to add link the Git commits to the resulting JIRA issues without rewriting history, which cannot be done with only git filter-branch because we now have pull requests, comments, and build statuses in Bitbucket Server.

            kostmo wrote:

            I think that git notes provide an ideal backend for this.

             git notes would be easier to script than a new REST API.

            If a Git commit message refers to the wrong JIRA issue EXAMPLE-123 and I want Bitbucket Server and JIRA to disregard that reference, the git-notes blob could perhaps say "EXAMPLE-123 #unrelated" or "EXAMPLE-123 #ignore", using a keyword syntax like in smart commits.

            Kalle Niemitalo added a comment - - edited I recently migrated the version history of a project from a non-Git system to JIRA and Bitbucket Server. The old commit messages referred to issues in the old bug tracker but JIRA assigned its own issue keys. To make JIRA display the Git commits that relate to each issue, I ended up appending the JIRA issue keys to the commit messages after I converted the history to Git. However, some of the old commit messages refer to issues in another project that has not been converted yet, so I don't know what their JIRA issue keys will be. When that project is eventually converted, I will not be able to add link the Git commits to the resulting JIRA issues without rewriting history, which cannot be done with only git filter-branch because we now have pull requests, comments, and build statuses in Bitbucket Server. kostmo wrote: I think that git notes provide an ideal backend for this.  git notes would be easier to script than a new REST API. If a Git commit message refers to the wrong JIRA issue EXAMPLE-123 and I want Bitbucket Server and JIRA to disregard that reference, the git-notes blob could perhaps say "EXAMPLE-123 #unrelated" or "EXAMPLE-123 #ignore", using a keyword syntax like in smart commits .

            We have linked wrong Jira issue Id to another Jira Item but after committing unable to edit the bug id. I think better to have an option to edit the link after committing.

            SUMAN ARUKONDA added a comment - We have linked wrong Jira issue Id to another Jira Item but after committing unable to edit the bug id. I think better to have an option to edit the link after committing.

              Unassigned Unassigned
              6a2db26c0b17 Thomas Meersschaert
              Votes:
              239 Vote for this issue
              Watchers:
              155 Start watching this issue

                Created:
                Updated: