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


## Description

> Macro (excerpt)
> 
> Returns a comment structure

Returns a comment structure with extra information (attachments and renderedBody), those are not get when using getCommentsForRequest

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getCommentForRequest(requestId_or_Key, commentId) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| requestId_or_Key | String | Yes | The ID or Key of the customer request for which the comment will be retrieved |
| commentId | Integer | Yes | The ID of the comment to be re returned |

## Return Type

**[JSMComment[]](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/435028065)**

## Example

```javascript
return getCommentForRequest("SM-1", 10072);
```

Returns a list of JSMComment structures.

## See also

> Macro (contentbylabel)