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

AUI Experimental Single Select

Josh Wheeler
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.
December 1, 2015

I want to use the JIRA public api

/jira/rest/api/2/user/search

with the https://docs.atlassian.com/aui/latest/docs/single-select.html but the parameter that's sent is `q`.  Is there a way to change that so it can be `username`?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Volodymyr Krupach
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.
December 1, 2015

Ho Josh,

Unfortunately no: 

The AUI single select makes a request with a q query parameter which is taken from the value of the input field; if you wish to filter server-side you simply need to accept this parameter and do filtering based on its value. The parameter used is not configurable. Sample URL:

http://my-server.com/searchResults?q=$valueFromInput

You need to code your own REST addon which actually can be copy of /jira/rest/api/2/user/search standard REST.

Josh Wheeler
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.
December 3, 2015

That was the answer I was dreading :-/ Fortunately it will be a simple add-on to the existing API that we're writing. It's just nice to use the out-of-the-box stuff sometimes.

Josh Wheeler
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.
December 3, 2015

By the way, do you know if there's a way to make this a feature request?

Volodymyr Krupach
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.
December 3, 2015

Hi @Josh Wheeler , you can put ticket in: https://ecosystem.atlassian.net/

TAGS
AUG Leaders

Atlassian Community Events