Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-13096

Create Jira issue from Bitbucket does not show all fields from issue create screen

    XMLWordPrintable

Details

    Description

      Issue Summary

      When creating a Jira issue from Bitbucket, not all fields are shown.
      Under certain conditions (explained below), even the summary field may not show.

      Steps to Reproduce

      1. [Jira] Create 50 custom fields
      2. [Jira] Add those custom fields to issue creation screen
      3. [Bitbucket] Try to create a Jira issue from Bitbucket

      Expected Results

      The issue summary field should be visible.

      Actual Results

      • The issue summary field is not visible.
      • Issue creation doesn't go through because the summary field is not set; No error is shown.

      Root cause

      • The Jira REST API endpoint called by Bitbucket (e.g.: /rest/api/2/issue/createmeta/TIG/issuetypes/7) returns a maximum of 50 fields. This limit is hardcoded and can't be changed.
      • The list of fields returned by the REST API endpoint is sorted alphabetically by fieldId. The fieldID of the Summary field is summary, which falls after all custom fields whose IDs start with customfield_.

      Workaround

      Remove as many custom fields as needed from the issue create screen so the summary field (or any other mandatory field) falls within the 50 fields returned by: 
      /rest/api/2/issue/createmeta/<PROJECT_KEY>/issuetypes/<issue_type_id>

      Attachments

        Activity

          People

            bplump Brent P
            adridi Arbi Dridi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: