---
title: "getIssueTypesInCustomFieldContext"
canonical: "https://support.appfire.com/space/PSJC/1343556240/getIssueTypesInCustomFieldContext"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Returns the list of issue types names for a certain custom field context. Note that if the routine does not return anything then all the issue types are set. You can use the allProjects and getissueTypesForProject routine to determine the full list of issue types.

Returns the list of issue types for a certain custom field context

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getIssueTypesInCustomFieldContext(customFieldId, context) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| customfieldId | String | Yes | The id of the custom field (format: customfield_xxxxx) |
| context | String | Yes | The id or the name of the custom field context |

## Return Type

**String []**

## Examples

```javascript
runnerLog(getIssueTypesInCustomFieldContext("customfield_10041", "10169"));
```

Bug|Task|Epic

```javascript
//global, should return []
 return getIssueTypesInCustomFieldContext("customfield_10040", "10167");
```

## See also

> Macro (contentbylabel)