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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,022
Community Members
 
Community Events
184
Community Groups

Autocomplete input field - Jira plugin development

Hello everyone,
Does we have autocomplete input fields in Jira Server like the ones in Confluence server, shown in the documentation bellow. I need to implements these fields with autocompletion in my jira plugin server.
https://developer.atlassian.com/server/confluence/javascript-components/
Thank you

2 answers

1 accepted

0 votes
Answer accepted

Hi,

 

You don't directly have autocomplete fields for specific data, but you should be able to wire any select to a rest end point of your choice using AUI Select or AUI select2 

Thank you for the answer, I solve it in that way, but I have another question here.

Why the selection part of the IssuePicker.jspa doesnt't work.

For example, the user selection from UserPickerBrowser.jspa works and populate the field with the username, but the selection from IssuePicker.jspa doesn't populate the field?

Could you be more specific ? Are you trying to replicate code you've seen in Jira's code base ?

 

Could you post the code in question ?

I am writing a jira server plugin and I implement the issue-picker and user-picker field like shown bellow.

Screenshot_36.png

The fields are shown, the popups also, but the selection part of the IssuePicker.jspa popup doesn't work.

For example, the user selection from UserPickerBrowser.jspa works and populate the field with the username, but the selection from IssuePicker.jspa doesn't populate the field with the selected issue?

Sorry for the late reply, I did get the notification.

If I understand correctly, the value is not stored for the field after the form is submitted, right ?

If so, in your code example, your input is not related to a customfield id and therefore Jira cannot know which field this value is associated with. The name attribute of your input need to be the id of a field. For a customfield it is in the this kind of format : customfield_xxxxx

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events