Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

<aui-select> in searcher's template Edited

I have created custom field that stores ids in DB but in all templates it maps those ids to values. Now I wat to create searcher for that field and it should show to user not ids, but values. I used <aui-select> in template, but dropdown with options renders below dropdown with field form:

 image.png

Code for template:

$!{auiparams.put("controlHeaderClass", "aui-field-text")}
#searcherEditHeader ($customField.id $customField.name)
<aui-select id="searcher-$customField.id" name="$customField.id">
#foreach($selectorOption in $selectorOptions)
<aui-option value="$selectorOption.getGuid()">$selectorOption.getName()</aui-option>
#end
</aui-select>
#searcherEditFooter ($customField.id $customField.description)
$!{auiparams.clear()}

Does anybody know how to fix it? Or is there a better way for such logic?

Actually, I would better use template like for "Asignee" field, is there a posibillity to look how it's done or reuse it? I have looked though documentation and searched a lot, but didn't find  any information about templates for searchers (more than just "how to add searcher to custom field"). Or even any explanation about which macros I can use in template.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you