Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-14042

Create Issue modal window used by BitBucket spins if the project has components in it, but none is selected.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Low Low
    • None
    • 7.17.15, 7.17.16, 8.9.0
    • Integration - JIRA
    • None

      Issue Summary

      Create Issue modal window used by Bitbucket spins if the project has components created in it, but no component is selected when creating a Jira issue.

      Steps to Reproduce

      Bitbucket DC connected to Jira Cloud

      1. Navigate to an open pull request
      2. Select the Diff tab in the pull request overview page
      3. Add an inline comment on the diff view and save it.
      4. In the comment click the ... (ellipsis) and Create Jira Issue
      5. Select a project that has at least one component created in a Jira project
      6. Select the issue type (Task, Story, etc)
      7. Fill the Summary and leave the rest as-is.
      8. Click Create Issue

      Expected Results

      Bitbucket will create the Jira ticket

      Actual Results

      Create Issue modal window will spin and never create a Jira issue.

      Looking at the developer tools in the browser we can see that Bitbucket shows a 400 for the request. Looking at the payload, we can see that it has a component field with a null value in it. This is what causes the 400 once Jira is expecting a valid value in the payload.

      {"errors":[{"context":"components","message":"Could not find valid 'id' or 'name' in component object.","exceptionName":"com.atlassian.bitbucket.internal.integration.jira.JiraCreateIssueException"}]}
      

      Notes

      If you choose a project that doesn't have any components in it, Bitbucket will not add the component field in the payload and the jira issue will be created as expected

      Workaround

      1. Make sure to select a Component while creating a Jira issue.
      2. If this is a small project and components are not being used, you can either create a generic component, or delete them altogether.

        1. screenshot-2.png
          screenshot-2.png
          311 kB
        2. screenshot-1.png
          screenshot-1.png
          179 kB

              ysun Yingran Sun
              dgnoato@atlassian.com Douglas Gnoato
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: