Expand parameters are not reported

Hi,

I have a question about the “expand” parameter of two REST API services for Jira Cloud.

According to the documentation, the services

  • /rest/api/3/search/jql

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-jql-post

  • /rest/api/3/issue/bulkfetch

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-bulkfetch-post

can return names and schema.

However, these fields are returned as empty.

Is it a service failure or are those fields no longer available for those services?

Thank you very much in advance.

Hello @dortiz

In the first example, expanding names and schema returned empty arrays because you didn’t define a fields value, therefore there were no fields returned about which that expanded information could be based on.

In the second example, you asked the search to return only the ids of the fields, but you also asked for the names and schemas of those fields. That’s a contradiction, as you’re asking the search API to return only one specific thing about the fields, yet simultaneously many other things about the fields.

Do either of those requests and set fields to *all or *navigable to observe the proper effect of expanding the field names or their schemas.

Thanks for the reply… I see it returns them for *all, *navigable… or for the fields requested in fields.

I need to request only certain fields from the issue, but also the names and schema of all the fields. Is there a way to tell the services this?

That’s not how expansion works. It only expands extra information about the fields that have been returned in the search, nothing else. If you use the fields parameter to specify which fields you want to be returned, then only those fields can be expanded.

You can’t use the expand parameter to get extra information about fields that haven’t been returned from the search.

Ok, I understood… thanks a lot for the help