Get Custom Field Contexts

GET {{baseUrl}}/rest/api/3/field/:fieldId/context?isAnyIssueType=<boolean>&isGlobalContext=<boolean>&contextId=<long>&startAt=0&maxResults=50

Returns a paginated list of contexts for a custom field. Contexts can be returned as follows:

  • With no other parameters set, all contexts.
  • By defining id only, all contexts from the list of IDs.
  • By defining isAnyIssueType, limit the list of contexts returned to either those that apply to all issue types (true) or those that apply to only a subset of issue types (false)
  • By defining isGlobalContext, limit the list of contexts return to either those that apply to all projects (global contexts) (true) or those that apply to only a subset of projects (false).

Permissions required: Administer Jira global permission.

Request Params

KeyDatatypeRequiredDescription
isAnyIssueTypestringWhether to return contexts that apply to all issue types.
isGlobalContextstringWhether to return contexts that apply to all projects.
contextIdstringThe list of context IDs. To include multiple contexts, separate IDs with ampersand: contextId=10000&amp;contextId=10001.
startAtnumberThe index of the first item to return in a page of results (page offset).
maxResultsnumberThe maximum number of items to return per page.

RESPONSES

status: OK

{&quot;maxResults&quot;:100,&quot;startAt&quot;:0,&quot;total&quot;:2,&quot;isLast&quot;:true,&quot;values&quot;:[{&quot;id&quot;:&quot;10025&quot;,&quot;name&quot;:&quot;Bug fields context&quot;,&quot;description&quot;:&quot;A context used to define the custom field options for bugs.&quot;,&quot;isGlobalContext&quot;:true,&quot;isAnyIssueType&quot;:false},{&quot;id&quot;:&quot;10026&quot;,&quot;name&quot;:&quot;Task fields context&quot;,&quot;description&quot;:&quot;A context used to define the custom field options for tasks.&quot;,&quot;isGlobalContext&quot;:false,&quot;isAnyIssueType&quot;:false}]}