Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-16450

JIRA Smart Commit Error when Issue Key Doesn't Exist on Instance

XMLWordPrintable

      Summary

      JIRA Smart Commit Error when Issue Key Doesn't Exist on Instance

      Steps to Reproduce

      1. Connect JIRA and Bitbucket together with application link and enable smart commits
      2. Ensure you have a username and email that matches on both instances.
      3. Enable outbound email on JIRA
      4. Create a git commit that references an issue key that doesn't exist on the JIRA instance and and uses some additional action such as #comment or #time

      Expected Results

      • JIRA will ignore the smart commit in cases where the issue key doesn't exist

      Actual Results

      • When connected to a single external provider, JIRA will attempt to match the smart commit to that one and send a failure email if the issue key doesn't exist.
      • When connected to multiple external providers (e.g., GitHub and Bitbucket), JIRA will successfully process the smart commit on the matching provider. However, for the other provider(s), if the issue key doesn't exist, it will still send a failure email with the following message:

      There was an error processing your smart commit
      Commit Icon
      450bb68
      Tuesday, February 20, 2018 3:00:12 PM CET
      Due to the following errors we could not process your smart commit. You need to perform the action on the issue manually.
      1 command created an error

      Notes

      For environments where multiple JIRA instances are connected to Bitbucket with the same user bases this will result in unnecessary failure emails. These confuse users and drive support calls.

      Workaround

      none at this time, except for client-side email filtering.

       

      Update September 2024

      We have a solution for this issue coming soon in 10.2.0.

      We were unable to change the existing behaviour by default, as some users may be depending on being notified of incorrect project keys. However, we have added an opt-out to allow disabling of this notification for those that use multiple Jira instances.

      To do this, you will need to execute a PUT command to the rest API like so:

      https://{yourjiraurl}/rest/smart-commits/1.0/config/notification?notificationKey=smart-commit-notify-unknown-issue&enabled=false

      Note this will have to be performed on each Jira instance connected to your GIT provider via DVCS.

       

              c8bcca445054 Benjamin Suess
              ddiblasio David Di Blasio
              Votes:
              11 Vote for this issue
              Watchers:
              18 Start watching this issue

                Created:
                Updated: