# How to develop single/multi user select list?

**URL:** <https://community.developer.atlassian.com/t/how-to-develop-single-multi-user-select-list/34322>\
**Category:** Jira Cloud\
**Tags:** jira-cloud, jira-plugin\
**Created:** [December 16, 2019, 7:38am UTC](https://community.developer.atlassian.com/t/how-to-develop-single-multi-user-select-list/34322 "2019-12-16T07:38:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![vedant.kulkarni](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@vedant.kulkarni](https://community.developer.atlassian.com/u/vedant.kulkarni)\
**Post date:** [December 16, 2019, 7:38am UTC](https://community.developer.atlassian.com/t/how-to-develop-single-multi-user-select-list/34322/1 "2019-12-16T07:38:34Z")

</div>

I want to add a single and multi-user select list using a custom add-on in JIra Cloud, anybody knows how to to do that? Also how to use contextPath() in Jira cloud? How to get the base URL of Jira Cloud?  
I am able to do it in Server but not in cloud as I am new in Jira cloud.

Regards,  
Vedant

---

<div class="post-metadata">

**Author:** ![kkercz](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/kkercz/32/37626_2.png) [@kkercz](https://community.developer.atlassian.com/u/kkercz)\
**Post date:** [December 16, 2019, 9:12am UTC](https://community.developer.atlassian.com/t/how-to-develop-single-multi-user-select-list/34322/2 "2019-12-16T09:12:07Z")

</div>

In Jira Cloud, you would create a [Connect app](https://developer.atlassian.com/cloud/jira/platform/integrating-with-jira-cloud/#atlassian-connect) with the [issue field](https://developer.atlassian.com/cloud/jira/platform/modules/issue-field/) module.

---

<div class="post-metadata">

**Author:** ![piskunovigorm](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/piskunovigorm/32/37218_2.png) [@piskunovigorm](https://community.developer.atlassian.com/u/piskunovigorm)\
**Post date:** [December 16, 2019, 9:13am UTC](https://community.developer.atlassian.com/t/how-to-develop-single-multi-user-select-list/34322/3 "2019-12-16T09:13:20Z")

</div>

Hi @vedant.kulkarni. Could you please clarify what do you mean by “using a custom add-on”? If you’ll provide more structured questions it will be easier to provide valid answers. But let me try anyway.

You can create a custom select single/multiple-choice list based on [@atlaskit/select](https://atlaskit.atlassian.com/packages/core/select) and `GET /rest/api/3/groupuserpicker` [API endpoint](https://developer.atlassian.com/cloud/jira/platform/rest/v3/?utm_source=%2Fcloud%2Fjira%2Fplatform%2Frest%2F&utm_medium=302#api-rest-api-3-groupuserpicker-get). This is one of the ways.

What about other questions, I believe it’ll be easier to read [Getting Started Guide](https://developer.atlassian.com/cloud/jira/platform/integrating-with-jira-cloud/#atlassian-connect) to get the base idea of how Jira Cloud addons work.

---

<div class="post-metadata">

**Author:** ![vedant.kulkarni](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@vedant.kulkarni](https://community.developer.atlassian.com/u/vedant.kulkarni)\
**Post date:** [December 16, 2019, 9:45am UTC](https://community.developer.atlassian.com/t/how-to-develop-single-multi-user-select-list/34322/4 "2019-12-16T09:45:16Z")

</div>

@piskunovigorm It means that using Atlassian connect cloud add-on. Like in the server I have HTML div for a select list and I am fetching user list using server rest API, but I don’t know how to create and add an HTML div element and then fetch user list in a dropdown in the cloud.  
Thanks for sharing the packages link, I think that can help me to resolve this, but where should I include a package? in atlassian-connect.json or in HTML file?

---

<div class="post-metadata">

**Author:** ![piskunovigorm](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/piskunovigorm/32/37218_2.png) [@piskunovigorm](https://community.developer.atlassian.com/u/piskunovigorm)\
**Post date:** [December 16, 2019, 12:20pm UTC](https://community.developer.atlassian.com/t/how-to-develop-single-multi-user-select-list/34322/5 "2019-12-16T12:20:36Z")

</div>

@vedant.kulkarni in order to use atlaskit packages, you should have experience in ReactJS development. If not, then you need to get such experience or use AUI library as an alternative way to build your Atlassian interface.

As for the Atlassian Connect application, ways to implement your custom addon depends on the language and framework that you’re using. You can look through the list of frameworks and tools here. [Connect frameworks and tools](https://developer.atlassian.com/cloud/jira/platform/frameworks-and-tools/)

To use framework is the fastest and easiest ways to start building your own Atlassian Cloud addon. So you can start with a framework, its structure, and docs for developers. Also, you can find a way to achieve the same results without pre-configured frameworks, but if so you need to read and understand the requirements from documentation.

I believe we’ll see your first Cloud addon soon. Welcome to the Atlassian Cloud Developers Community. 🙂

---

<div class="post-metadata">

**Author:** ![vedant.kulkarni](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@vedant.kulkarni](https://community.developer.atlassian.com/u/vedant.kulkarni)\
**Post date:** [December 16, 2019, 12:44pm UTC](https://community.developer.atlassian.com/t/how-to-develop-single-multi-user-select-list/34322/6 "2019-12-16T12:44:29Z")

</div>

@piskunovigorm Yes you are correct I need to explore ReactJS and frameworks for Atlassian connect add-ons.

Thank you for the support,  
Vedant

---

<div class="post-metadata">

**Author:** ![vedant.kulkarni](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@vedant.kulkarni](https://community.developer.atlassian.com/u/vedant.kulkarni)\
**Post date:** [December 17, 2019, 11:20am UTC](https://community.developer.atlassian.com/t/how-to-develop-single-multi-user-select-list/34322/7 "2019-12-17T11:20:51Z")

</div>

Hey @piskunovigorm, I found this AP.request() method, using which we can fire rest api and get required data. Do you know how to use it for user picker form field? instead of creating user picker field I want to create user picker drop down html element and then show all users there? Is this possible using AP.request() ?

---

<div class="post-metadata">

**Author:** ![piskunovigorm](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/piskunovigorm/32/37218_2.png) [@piskunovigorm](https://community.developer.atlassian.com/u/piskunovigorm)\
**Post date:** [December 17, 2019, 1:10pm UTC](https://community.developer.atlassian.com/t/how-to-develop-single-multi-user-select-list/34322/8 "2019-12-17T13:10:31Z")

</div>

Hi @vedant.kulkarni, unfortunately, if you’re not using React, you need to do the implementation yourself. Otherwise, you can try user picker from atlaskit:  
[https://atlaskit.atlassian.com/examples/elements/user-picker/single](https://atlaskit.atlassian.com/examples/elements/user-picker/single)

It’s possible to get `GET /rest/api/3/groupuserpicker` endpoint with AP.reques. For example:

> AP.request(‘/rest/api/3/groupuserpicker?query=admin&caseInsensitive=true’)  
> .then(data =\> alert(data.body))  
> .catch(e =\> alert(e.err));

But there is no request to return the user picker form field(if I got right your question).

---

<div class="post-metadata">

**Author:** ![vedant.kulkarni](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@vedant.kulkarni](https://community.developer.atlassian.com/u/vedant.kulkarni)\
**Post date:** [December 24, 2019, 2:19pm UTC](https://community.developer.atlassian.com/t/how-to-develop-single-multi-user-select-list/34322/9 "2019-12-24T14:19:19Z")

</div>

@piskunovigorm Thanks for the response.  
It is better to go with AtlasKit. So I tried to use react code in my jira cloud app but I am getting an error related as **Uncaught SyntaxError: Cannot use import statement outside a module**.  
Any workaround for this?

Also, after creating the hello-world project using the Atlassian Connect framework, how to include react base code and where should I add it? I was trying to add it on js file, from /public/js and then calling in hello-world.hbs the script tag by providing the path of this file. But it is not working at all.

Thanks,  
Vedant
