Reference commits into issues as comments

Anselm Hannemann avatarAnselm Hannemann created an issue

When committing code (via git in my case) one should be able to reference an issue via its hash ID. This also affects closing of issues which already works but gives no notice which commit closed it.

Every mention of an issue via commit notice should be reflected as comment in the issue itself so one can easily jump to the commit when viewing an issue.

Comments (15)

  1. Michael Frauenholtz

    Hi Anselm,

    This should currently work, and create a comment on the issue with a link to the commit, like this:


    Please see the documentation for setting up the Bitbucket issue service, and let us know if this isn't working for you.


  2. Anselm Hannemann

    Do I have to set something to use it? Have tried this several times but it never worked for me… :/ It also does not close my issue. I just added 'Fixes #[issueid]' to my git commit message which should work normally.

  3. Michael Frauenholtz

    Hi Anselm,

    For your repository, is the Issues Service turned on? That should be all you need to close or reference issues (see all the commands in the documentation above), as well as add an issue comment linking to the commit. Also, after you push to Bitbucket, does your commit message on the site link to the issue number?

  4. Anselm Hannemann

    Hi, it is turned on. After push in the commit message the link appears although in the issue itself there happens nothing (no action to set to resolved nor a comment to the commit).

  5. Michael Frauenholtz

    We have had some issues lately with some Services being delayed or not working. I suspect this issue may be related. We are investigating this and we'll keep you updated on a resolution.

  6. Brian Nguyen

    Hi Anselm,

    I believe that the issue with our services has now been fixed. I'm closing this issue, but if you are still having problems setting up the service please reopen this.

    Cheers, Brian

  7. ricardo larrahondo

    Hi, i have same problem, when i reference an issue by commit mesagge, i dont get a comment in the issue referencing to that commit. althought in the commit the issue is referenced.

  8. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.