JIRA REST API displaying error messages for JSD fields

XMLWordPrintable

    • 6
    • Severity 2 - Major
    • 4

      NOTE: This bug report is for JIRA Service Desk Server. Using JIRA Service Desk Cloud? See the corresponding bug report.

      This is for the Customer Request Type and Time to resolution fields.

      In this case, it is a permission error, it should not show the fields that are not valid to be accessed. I can access the fields correctly with another user.

      Example: https://bobswift.atlassian.net/rest/api/latest/issue/SUPPORT-1?fields=customfield_11104,customfield_11100

      {
          "expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",
          "id": "29332",
          "self": "https://bobswift.atlassian.net/rest/api/latest/issue/29332",
          "key": "SUPPORT-1",
          "fields": {
          "customfield_11100": {
              "errorMessage": "You do not have permission to view this request.",
              "i18nErrorMessage":     {
                  "i18nKey": "sd.request.view.error.no.permission",
                  "parameters": [ ]
              }
          },
          "customfield_11104": {
              "errorMessage": "You do not have permission to fetch the list of SLA custom fields",
              "i18nErrorMessage": {
                      "i18nKey": "sd.sla.field.service.permission.error.fetch",
                      "parameters": [ ]
                  }
              }
          }
      }
      

            Assignee:
            Unassigned
            Reporter:
            Bob Swift
            Votes:
            12 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated: