---
title: "addCustomFieldContext"
canonical: "https://support.appfire.com/space/JCLI/70781828/addCustomFieldContext"
format: markdown
---
> Macro (aura-html)

See also: [Actions](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70787366)

> Macro (details)
> 
> | **Description** | Add a new context for a custom field. Optionally, issue types and projects can be associated to the context using the issueType and project parameters accepting a comma separated list of names or ids. Use @all or blank for the issueType parameter to associate the context to all issue types. Use @all or blank for the project parameter to make the context a global context. If '--options createAnother' is specified, a new context will be added even if a context exists with the same name. |
> | --- | --- |
> | **Required Parameters** | [field](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70784837), [name](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70784183) |
> | **Optional Parameters** | [description](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70785189), [issueType](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70789776), [project](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70784165), [context](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70781926), [continue](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70790023) |
> | **Type** | [Create](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70780909/Action+Types#ActionTypes-Create) |
> | **Category** | [Fields](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70780591/Action+Categories#ActionCategories-Fields) |
> | **Output Formats** |  |
> | **Replacement Variables** | field, fieldName, context, contextName |
> | **Hosting** | cloud,server,datacenter |
> | **Since Version** | 9.7 |
> | **Examples** | [addCustomFieldContext](https://appfire.atlassian.net/wiki/spaces/JCLI/pages/70782732/Examples#Examples-addCustomFieldContext) |

## Related How To's

> Macro (cql-query)