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


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

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getJSDUrl(issueKey, portalId | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> This function returns the url to a specific customer portal for an issue.

This function returns the url to a specific customer portal for an issue.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| issueKey | String | Yes | Key of the selected issue |
| portalId | Number | Yes | Id of the selected portal |

## Return Type

**String**

Returns url to a specific customer portal for an issue.

## Example

The following script will return a string similar to this one: https://jira.yourdomain/servicedesk/customer/portal/1/JSD-1.

```
getJSDUrl(key, 1);
```

## See also

> Macro (contentbylabel)

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