---
title: "rankBefore"
canonical: "https://support.appfire.com/space/PSJC/569279603/rankBefore"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Used to adjust the prioritization or ranking of issues or tasks before a specified point or issue.

Used to adjust the prioritization or ranking of issues or tasks before a specified point or issue, controlling their order within a particular context.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | rankBefore(key_to_rank, key) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| key_to_rank | String | Yes | The issue key you want to rank |
| key | String | Yes | the pivot issue key |

## Return Type

**Boolean**

True if the rank is ok

## Example

```javascript
return rankIssuesBefore("TEST-4", "TEST-5");
```

Returns true if successful, false if otherwise.

## See also

> Macro (contentbylabel)