---
title: "isPublicJSDComment"
canonical: "https://support.appfire.com/space/PSJ/15488988/isPublicJSDComment"
format: markdown
---
> Macro (aura-html)


> 📝 The use of this function requires the Power Scripts for Jira add-on be installed and licensed.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | isPublicJSDComment(jsdCommentId) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> This function returns the type of comment, if the comment is public, the function will return "true"otherwise it will return "false".

This function returns the type of comment, if the comment is public, the function will return "true"otherwise it will return "false".

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| jsdCommentId | Number | Yes | The id of the JSD comment |

## Return Type

**Boolean (true/false)**

If the comment is public, the function will return "true" otherwise it will return "false".

## Example

Th following code will return "true" if the last comment in that issue is external and "false" otherwise.

```
isPublicJSDComment(getLastComment(key)["id"]);
```

## See also

> Macro (contentbylabel)

> Macro (fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macro)