Hey, guys!
What I want is to create custom button which is the same like Component/s button:

So I need to have the content of Component/s button and behaviour of Component/s button in custom button.
I've tried to create a custom button and put this code inside of "Description":
(function($){
new AJS.MultiSelect({
element: $("#customfield_10653"),
itemAttrDisplayed: "label",
errorMessage: AJS.params.multiselectComponentsError
});
})(AJS.$);
However, the above code is not working and I see just the above code.
Guys, how can it possible to create custom field like "Component/s" button?
I have an option to use ScriptRunner.