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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | changeSubtaskOrder(subtaskKey, position) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Changes subtask position.

Changes subtask position.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| subtaskKey | String | Yes | Key of the sub-task. |
| position | Number | Yes | Position of sub-task. |

## Return Type

**Boolean (true/false)**

A "true" return value means that the position of the sub-task was changed.

## Example

```
return changeSubtaskOrder("TSTAG-5", 2);
```

Changes the position of sub-task TSTAG-5 to position 2.

## See also

> Macro (contentbylabel)