Hello,
I wrote a plugin for JIRA that has a velocity template with a form on it. Inside this form (and for the further functions) it is neccessary to give a username.
Now I wanted to add a such a selection as in the "create new project" dialog, where you can search for users (with autocomplete and the list, that looks similar to a dropdownlist of a <form><select>)
How can I add such a field to my velocity?
Thank You
Community moderators have prevented the ability to post new answers.
1. Create a standard user picker custom field
2. Get a browser extension that will turn off javascript
3. Open an issue and click "Edit" with javascript turned off
4. Copy and paste the userpicker HTML markup to your page
5. Change any "name" and "id" attributes to suit your needs
... and you're done.
If this doesn't work look for the resource that contains the initUserPickers.js file and #require it in your page.
Thank you for that great tip!
I've got a select field that looks like that one on the edit issue page
Great!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use the existing JIRA css classes in your select in VM . Also refer this http://pastebin.com/RnRJJPbm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the quick answer.
I pasted the code from pastebin (the HTML into the *.vm and the script into an external *.js), but when I enter the Page it looks like this:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.