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

Custom Fields REST API call returns type incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Medium
    • None
    • 7.12.1
    • Documentation, REST API

    Description

      Issue Summary

      Custom Fields REST API call returns custom fields type incorrectly

      Steps to Reproduce

      1. Run the following rest call:
        GET /rest/api/2/customFields
        

      Expected Results

      As per the docs https://docs.atlassian.com/software/jira/docs/api/REST/7.12.1/#api/2/customFields-getCustomFields we get a results with the type as shown below:

      {
          "id": "customfield_10000",
          "name": "New custom field",
          "description": "Custom field for picking groups",
          "type": "com.atlassian.jira.plugin.system.customfieldtypes:grouppicker",
          "searcherKey": "com.atlassian.jira.plugin.system.customfieldtypes:grouppickersearcher"
      }
      

      Actual Results

              {
                  "id": "customfield_10200",
                  "name": "My Select List",
                  "type": "Select List (single choice)",
                  "searcherKey": "My Select List",
                  "self": "http://localhost:7121/jira7_12_1/rest/api/2/customFields/customfield_10200",
                  "numericId": 10200,
                  "isLocked": false,
                  "isManaged": false,
                  "isAllProjects": true,
                  "projectsCount": 0,
                  "screensCount": 5
              }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mriza Mohamed Riza (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: