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

> Macro (button-handy)



> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | sysUnlock(lockKey) | **Package** | system |
> | **Alias** |  | **Pkg Usage** | unlock(lockKey) |

## Description

> Macro (excerpt)
> 
> Removes a named lock.

Removes a named lock. If you forget to call it, all locks will be cleared at the termination of the script.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | lockKey | String | Yes | The lockKey is the issue key (Jira) or page id (Confluence), or any unique string to give the lock name. |

## Return Type

**None**

## Examples

### Example 1

```javascript
sysUnlock("TEST-123");
```

Issue TEST-123 is now unlocked and may be edited by other SIL scripts which are now doing sysLock().

### Example 2

Similar to the example above but uses the package.

```javascript
use "system";
unlock("TEST-123");
```

Issue TEST-123 is now unlocked and may be edited by other SIL scripts which are now doing sysLock().

## See also

> Macro (contentbylabel)