This is the code for the Confluence plugin providing a status-light macro with extended property panel options.
You can find the full instructions for this tutorial here:
https://bitbucket.org/atlassian_tutorial/confluence-status-light-macro