Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-31418

REST JQL search returning empty expanded fields

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 5.2.6, 6.0-OD-06
    • 5.2
    • None

      I'm trying to get the rendered description of a set of issues:

      If I use the REST api for a single issue, the rendered description is returned:
      https://jira.atlassian.com/rest/api/2/issue/JRA-9?fields=description&expand=renderedFields

      {
        "expand": "renderedFields,names,schema,transitions,operations,editmeta,changelog",
        "id": "10148",
        "self": "https://jira.atlassian.com/rest/api/2/issue/10148",
        "key": "JRA-9",
        "fields": {
          "description": "Add time zones to user profile.     That way the dates displayed to a user are always contiguous with their local time zone, rather than the server's time zone."
        },
        "renderedFields": {
          "description": "Add time zones to user profile.     That way the dates displayed to a user are always contiguous with their local time zone, rather than the server's time zone."
        }
      }
      

      However, if I use the JQL REST api, the renderedFields returns empty:
      https://jira.atlassian.com/rest/api/2/search?jql=issuekey+in+(JRA-9)&fields=description&expand=renderedFields

      {
        "expand": "names,schema",
        "startAt": 0,
        "maxResults": 50,
        "total": 1,
        "issues": [
          {
            "expand": "editmeta,renderedFields,transitions,changelog,operations",
            "id": "10148",
            "self": "https://jira.atlassian.com/rest/api/2/issue/10148",
            "key": "JRA-9",
            "fields": {
              "description": "Add time zones to user profile.     That way the dates displayed to a user are always contiguous with their local time zone, rather than the server's time zone."
            },
            "renderedFields": {}
          }
        ]
      }
      

              edalgliesh Eric Dalgliesh
              xtjhin Joshua Tjhin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: