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

Get auto complete data for JQL searches

Returns the auto complete data required for JQL searches

GET/api/2/jql/autocompletedata
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.

Responses
200

The auto complete data required for JQL searches.

jqlReservedWordsstring[]
visibleFieldNamesstring[]
visibleFunctionNamesstring[]
401

Returned if the calling user is not authenticated.

500

Returned if an error occurs while generating the response.

Try it
Server
Authorization
Request
curl -X GET 'http://jira.example.com/rest/api/2/jql/autocompletedata' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json'
Response
{
  "jqlReservedWords": [
    "empty",
    "and",
    "or",
    "in",
    "distinct"
  ],
  "visibleFieldNames": [
    {
      "value": "affectedVersion",
      "displayName": "affectedVersion",
      "auto": "true",
      "orderable": "true",
      "searchable": "true",
      "operators": [
        "=",
        "!=",
        "in",
        "not in",
        "is",
        "is not",
        "<",
        "<=",
        ">",
        ">="
      ],
      "types": [
        "com.atlassian.crowd.embedded.api.User"
      ]
    },
    {
      "value": "assignee",
      "displayName": "assignee",
      "auto": "true",
      "orderable": "true",
      "searchable": "true",
      "operators": [
        "!=",
        "was not in",
        "not in",
        "was not",
        "is",
        "was in",
        "was",
        "=",
        "in",
        "changed",
        "is not"
      ],
      "types": [
        "com.atlassian.crowd.embedded.api.User"
      ]
    }
  ],
  "visibleFunctionNames": [
    {
      "value": "currentLogin()",
      "displayName": "currentLogin()",
      "types": [
        "java.util.Date"
      ]
    },
    {
      "value": "currentUser()",
      "displayName": "currentUser()",
      "types": [
        "com.atlassian.crowd.embedded.api.User"
      ]
    }
  ]
}

Was this page helpful?