Pinned endpoints
Pinned endpoints are available in API Key Manager for Jira.
An endpoint entry that contains a query string is pinned. A pinned entry does not just allow a path, it also fixes the query parameters, so the key can fetch exactly one specific view of the data.
/rest/api/3/search/jql?jql=filter=10001&fields=summary,status
A key with this entry can run the search for filter 10001 and return those two fields. It cannot run any other search, and it cannot change the fields.
Rules
A request matches a pinned entry only if all of these are true:
- The method is
GET. Pinned entries are read-only. - The path is exactly the entry's path. Sub-paths and neighbours do not match.
- Every parameter of the entry is sent with the identical value.
- No other parameter is sent. The only exception is
nextPageToken, which may vary so that you can page through results. - No parameter appears more than once.
Parameters are compared after parsing, so order and encoding do not matter: jql=a%20b and jql=a+b are the same, and so are ?a=1&b=2 and ?b=2&a=1.
The URL that is actually sent to Jira is built from the entry, not from the string the client sent.
Examples
Entry: /rest/api/3/search/jql?jql=filter=10001&fields=summary
| Request URL | Allowed? |
|---|---|
/rest/api/3/search/jql?jql=filter%3D10001&fields=summary | ✅ |
/rest/api/3/search/jql?fields=summary&jql=filter%3D10001 | ✅ |
/rest/api/3/search/jql?jql=filter%3D10001&fields=summary&nextPageToken=abc | ✅ |
/rest/api/3/search/jql?jql=filter%3D10002&fields=summary | ❌ different value |
/rest/api/3/search/jql?jql=filter%3D10001 | ❌ parameter missing |
/rest/api/3/search/jql?jql=filter%3D10001&fields=summary&maxResults=1 | ❌ extra parameter |
/rest/api/3/search/jql/approximate-count?jql=filter%3D10001&fields=summary | ❌ different path |
Good to know
- Saving a key with a pinned entry fails if GET is not among the key's allowed methods.
- An entry with a trailing
?and no parameters allows the bare path with no query string. - If the same key also has a plain entry covering the path (for example
/rest/api/3/search), the plain entry wins: it allows everything below its path. - Placeholders work in the path part of a pinned entry, for example
/rest/api/3/issue/{key}?fields=summary. - Create Issue keys ignore pinned entries.
- A parameter that occurs twice in the entry is rejected when you save.
For fixing a search, a Stored JQL key is usually the better tool.