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


> 📝 The use of this function requires the SIL Tempo Connector add-on (free) be installed.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | tempoSetAccountForIssue(issueKey, account, [forceSet]) | **Package** | tempo |
| **Alias** |  | **Pkg Usage** | setAccountForIssue(issueKey, account, [forceSet]) |

## Description

> Macro (excerpt)
> 
> Sets the issue account. Returns true if the set has been performed.

Sets the issue account. Returns true if the set has been performed.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| issuekey | String | Yes | Issue key. |
| account | String | Yes | Account id, its key or its name. |
| forceSet | Boolean | Yes | True or false, depending if you want to force setting the account for a project that it's not defined on or not. Default value: true. |

## Return Type

**Boolean**

## Examples

### Example 1

```javascript
tempoSetAccountForIssue(issueKey, account);
```

Sets the given account to the given issue, no matter if the account is not defined for that project.

### Example 2

```javascript
tempoSetAccountForIssue(issueKey, account, false);
```

Sets the given account to the given issue, only if the account is defined for that project.

## See also

> Macro (contentbylabel)

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