Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get default columns for filter

Returns the default columns for the given filter. Currently logged in user will be used as the user making such request.

GET/api/2/filter/{id}/columns
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Path parameters
idstringrequired

The filter id.

Responses
200

Returns a list of columns for configured for the given user

columnConfigstring
Allowed:SYSTEMEXPLICITFILTERUSERNONE
columnLayoutItemsColumnLayoutItem[]
Show properties
Array of ColumnLayoutItem
columnHeadingKeystring
idstring
navigableFieldNavigableField
Show properties
columnCssClassstring
columnHeadingKeystring
defaultSortOrderstring
hiddenFieldIdstring
idstring
namestring
nameKeystring
valueLoaderFieldValueLoader
Show properties
comparatorobject
positioninteger<int32>
404

Returned if the filter does not have any columns.

500

Returned if an error occurs while retrieving the column configuration.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'http://jira.example.com/rest/api/2/filter/string/columns' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json'
Response
{
  "columnConfig": "SYSTEM",
  "columnLayoutItems": [
    {
      "columnHeadingKey": "string",
      "id": "string",
      "navigableField": {
        "columnCssClass": "string",
        "columnHeadingKey": "string",
        "defaultSortOrder": "string",
        "hiddenFieldId": "string",
        "id": "string",
        "name": "string",
        "nameKey": "string",
        "valueLoader": {
          "comparator": {}
        }
      },
      "position": 0
    }
  ]
}

Was this page helpful?