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


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

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | addOrganization(organization, project) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Adds an existing organization or a list of organizations to a specified Service Desk project.

Adds an existing organization or a list of organizations to a specified Service Desk project.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| organization | String [] | Yes | The organization name. |
| project | String | Yes | The key of the selected project. |

## Return Type

**Boolean**

Returns "true" if the operation succeeded.

## Examples

### Example 1

```
return addOrganization({"First organization", "Second organization"}, "JSD");
```

### Example 2

```
return addOrganization("My Organization", "JSD");
```

## See also

> Macro (contentbylabel)