I'm trying to make a custom field plugin for Jira service desk, in the edit.vm file i m using an input text and the script for auiSelect2() with ajax call ,all work fine the problem is when i select an option and confirm and when i go back to my custom field again (that have an already selected option) , the input doesn't look like an aui Select field it just a simple input text with a value equals to the id of the selected option.