...
Use a suitable test environment for the following steps to become familiar with what you are doing without any impact on your production data: this can be a separate test instance or , sandbox, or a simple test project with sample data.
Log in as a Jira system admin and call an issue of your project you are focussing on.
Open your browser’s web dev tools (generally, hit F12 or the equivalent browser menu item).
Before running the script, you must switch to the correct context within your browser. Below, you will find a screen copy of Firefox’s web dev tools and the necessary steps.
Modify the 2 two constants in lines 2 and 3 of the script below representing your traffic-light field name and related project key.
PAY ATTENTION: if your field name contains foreign characters like French “é”, etc., you may have to update the script manually because the related property name may differ. Use the free app “https://marketplace.atlassian.com/apps/1214509/entity-property-tool-for-jira?hosting=cloud&tab=overview“ of Atlassian labs to verify that issue entity property name. Generally, a space within the name will be replaced by Jira natively by a plus (“+”), which the script handles automatically.Copy and paste the updated script into your browser’s console and hit ENTER to execute/run this script. Within the console, you will see the issues updated as log entries.
Verify that everything works as you expect.
Repeat the successful steps within your production environment/project.
...