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


## Description

> Macro (excerpt)
> 
> Returns the list of issue type names that are included in the same context as the given issue for a certain custom field. 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 that are included in the same context as the given issue for a certain custom field

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | issueKey, customFieldId | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

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

## Return Type

**String []**

## Examples

```javascript
getIssueTypesInTheSameContext("ITSD-1", "customfield_10065")
```

Bug|Task|Epic

```javascript
//global, should return []
 return getIssueTypesInTheSameContext("ITSD-1", "customfield_10040");
```

## See also

> Macro (contentbylabel)