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


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

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | tempoGetAccountForIssue(issueKey) | **Package** | tempo |
| **Alias** |  | **Pkg Usage** | getAccountForIssue(issueKey) |

## Description

> Macro (excerpt)
> 
> Returns the account set on the issue, if any.

Returns the account set on the issue, if any.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| issuekey | String | Yes | The issue key. |

## Return Type

**[TempoAccount](https://appfire.atlassian.net/wiki/spaces/PSJ/pages/15485649)**

## Example

```javascript
TempoAccount ta = tempoGetAccountForIssue("TST-1");
runnerLog("ID: " + ta.id);
runnerLog("Key: " + ta.key);
runnerLog("Name: " + ta.name);
runnerLog("Lead: " + ta.lead);
runnerLog("Contact: " + ta.contact);
runnerLog("Status: " + ta.status);
runnerLog("Customer ID: " + ta.customer_id);
runnerLog("Customer Key: " + ta.customer_key);
runnerLog("Customer Name: " + ta.customer_name);
runnerLog("Category ID: " + ta.category_id);
runnerLog("Category Key: " + ta.category_key);
runnerLog("Category Name: " + ta.category_name);
runnerLog("Monthly Budget:" + ta.monthly_budget);
runnerLog("Global: " + ta.global);
runnerLog("Billable: " + ta.billable);
```

```javascript
ID: 1234
Key: 1234-5678-9101
Name: [Tempo] Example Account
Lead: jSmith
Contact: JDoe
Status: OPEN
Customer ID: 405
Customer Key: TMP
Customer Name: Example
Category ID: 6
Category Key: 005
Category Name: Client Billable - Fixed
Monthly Budget: 0
Global: false
Billable: false
```

## See also

> Macro (contentbylabel)

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