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

"customfield-searcher" for user picker or auto complete textbox in webwork module - velocity template

dhaval soni
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 7, 2013

Hi,

In JIRA, how can i create user picker autocomplete field using "customfield-searcher" or any best way to create userpicker in velocity template ?

Any stuff or documentation will helpful.

Thank You

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
dhaval soni
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 8, 2013

Hi Guys,

How can i use "customfield-searcher" for User picker in my velocity template. I am using webwork module which uses this velocity template.

Can any one give me some documentation or stuff which shows me best ways to use "User picker" field into velcoity template ?

0 votes
Florin Manaila
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 7, 2013

Take a look at this: https://github.com/rdumitriu/jira-rewards/blob/master/src/main/resources/soy/forms.soy

there's a simple select with class="single-user-picker js-default-user-picker" that should be automatically picked up by some JIRA javascript on page load. You might need to require as web resource jira-webresource:user-pickers

abdul ghaffar hafiz February 21, 2015

Thanks for this post, very helpful to me.

0 votes
Mizan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 7, 2013

Which plugin module are you using ?

You can pass all users in velocity then display them as options of a select list ...

<select name="upicker" id="upicker" class="select">
#foreach($user in $allUsers )

	<option value="$user">$user</option>
				
#end
</select>

You will need to write some javascript which can render the values in an autocomplete way .

dhaval soni
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 7, 2013

Thanks for your comments. Is there any REST service available which can be directly use with AJAX autocomplete jquery OR achieve autocomplete user field as provided in JIRA ?

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events