provider Issue custom field contexts POST /rest/api/3/field/{fieldId}/context
@utdk/jira /rest/api/3/field/{fieldId}/context
Create custom field context
Creates a custom field context. If `projectIds` is empty, a global context is created. A global context is one that applies to all project. If `issueTypeIds` is empty, the context applies to all issue types. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).
fieldId path required
The ID of the custom field.
string

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.

createcustomfieldcontext
POST/rest/api/3/field/{fieldId}/context
Creates a custom field context. If `projectIds` is empty, a global context is created. A global context is one that applies to all project. If `issueTypeIds` is empty, the context applies to all issue types. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).

Parameters

required

The ID of the custom field.

Input

The description of the context.

The ID of the context.

The list of issue types IDs for the context. If the list is empty, the context refers to all issue types.

required

The name of the context.

The list of project IDs associated with the context. If the list is empty, the context is global.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import jira from '@utdk/jira';

await jira.createcustomfieldcontext()