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

> Macro (button-handy)



> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | admRenameCustomFieldOption(customFieldId, oldValue, newValue, projectKeys, issueTypes) | **Package** | adm |
> | **Alias** |  | **Pkg Usage** | renameCustomFieldOption(customFieldId, oldValue, newValue, projectKeys, issueTypes) |

## Description

> Macro (excerpt)
> 
> Renames a custom field option for the specified context.

Renames a custom field option for the specified context. If the project keys and issue types are not specified (empty arrays), the global context is the one affected by the renaming. This function only handles the following custom fields types: single select, multi select, radio buttons, check boxes.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | customFieldId | String | Yes | Custom field ID. |
> | oldValue | String | Yes | The value of the option to be renamed. |
> | newValue | String | Yes | The new value of the option. |
> | projectKeys | String [] | No | Project keys. |
> | issueTypes | String [] | No | Issue types. |

## Return Type

**Boolean (true/false)**

Returns ‘true’ if the option was successfully renamed and ‘false’ otherwise. If ‘false’ is returned, check the log for a detailed report on why it failed.

## See also

> Macro (contentbylabel)