Uploaded image for project: 'Jira Align'
  1. Jira Align
  2. JIRAALIGN-5370

API: Can't create custom team mapping with null jira projectKey

XMLWordPrintable

    • 2
    • Severity 3 - Minor
    • No

      Issue Summary

      Can't create custom team mapping with no Jira project key selected.

      Steps to Reproduce

      Make POST request to custom team mappings endpoint:

      // POST /rest/align/api/2/Connectors/1/customFields/teams
      {
      	"jiraCustomFieldType": "dropdown",
      	"jiraTeamValue": "Sharkinators",
      	"childTeamValue": "",
      	"projectKey": null,
      	"teamId": 6023
      }
      

      Expected Results

      In the UI it's possible to create a custom team mapping without selecting a specific project. This mapping will still work fine and will apply to all projects that don't have their own mappings specified.

      It should be possible to create the same type of mapping (without a projectKey specified) via API.

      Actual Results

      Error 400: Cannot create teamCustomFields. Value for jiraProject is invalid.

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available.

            fea1a6ef3355 Yannick Genin
            c7f2a2ebc58e Kirill Duplyakin
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: