---
title: "getRequestTypeName (Power Scripts)"
canonical: "https://support.appfire.com/space/PSJ/15483817/getRequestTypeName%20(Power%20Scripts)"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getRequestTypeName(issueKey) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Gets the name of the request type from an existing issue in a Service Desk project.

Gets the name of the request type from an existing issue in a Service Desk project.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| issueKey | String | Yes | The key of the issue to retrieve the request type name for. |

## Return Type

**String**

## Example

```
return getRequestTypeName("TEST-3");
```

Returns: "Bug"

## See also

> Macro (contentbylabel)