provider Issue custom field contexts POST
/rest/api/3/field/{fieldId}/context/mapping @utdk/jira
/rest/api/3/field/{fieldId}/context/mapping Get custom field contexts for projects and issue types
Returns a [paginated](#pagination) list of project and issue type mappings and, for each mapping, the ID of a [custom field context](https://confluence.atlassian.com/x/k44fOw) that applies to the project and issue type.
If there is no custom field context assigned to the project then, if present, the custom field context that applies to all projects is returned if it also applies to the issue type or all issue types. If a custom field context is not found, the returned custom field context ID is `null`.
Duplicate project and issue type mappings cannot be provided in the request.
The order of the returned values is the same as provided in the request.
**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).
- fieldId path required
- The ID of the custom field.
- string
- startAt query
- The index of the first item to return in a page of results (page offset).
- integer
- maxResults query
- The maximum number of items to return per page.
- integer
Try it
Authentication
Configure credentials for The Jira Cloud platform REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import jira from '@utdk/jira';
await jira.getcustomfieldcontextsforprojectsandissuetypes({
"startAt": 0,
"maxResults": 50
})