# How to achieve dropdown in jira main page for addons

**URL:** <https://community.developer.atlassian.com/t/how-to-achieve-dropdown-in-jira-main-page-for-addons/30582>\
**Category:** Jira Cloud\
**Tags:** jira-cloud, jira-plugin\
**Created:** [July 23, 2019, 6:00am UTC](https://community.developer.atlassian.com/t/how-to-achieve-dropdown-in-jira-main-page-for-addons/30582 "2019-07-23T06:00:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![NishantV](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/nishantv/32/38074_2.png) [@NishantV](https://community.developer.atlassian.com/u/NishantV)\
**Post date:** [July 23, 2019, 6:00am UTC](https://community.developer.atlassian.com/t/how-to-achieve-dropdown-in-jira-main-page-for-addons/30582/1 "2019-07-23T06:00:28Z")

</div>

Hi folks,  
I’m trying to achieve something like this in my Jira main page for the addon that I’m working on…

![Capture1](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/e/c/ec0bdf2580bfa69d718ed2ee0ce14915cc7b8c39.jpeg)

Can someone please let me know how this can be done and quote some reference ? TIA!

---

<div class="post-metadata">

**Author:** ![NishantV](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/nishantv/32/38074_2.png) [@NishantV](https://community.developer.atlassian.com/u/NishantV)\
**Post date:** [July 23, 2019, 9:28am UTC](https://community.developer.atlassian.com/t/how-to-achieve-dropdown-in-jira-main-page-for-addons/30582/2 "2019-07-23T09:28:04Z")

</div>

I did some research and found that this can be achieved using “web items”.

---

<div class="post-metadata">

**Author:** ![prasad.rambanam](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@prasad.rambanam](https://community.developer.atlassian.com/u/prasad.rambanam)\
**Post date:** [July 31, 2019, 9:07am UTC](https://community.developer.atlassian.com/t/how-to-achieve-dropdown-in-jira-main-page-for-addons/30582/3 "2019-07-31T09:07:33Z")

</div>

@NishantV can you let us know how you did that? iI am trying to do thew same thing but couldn’t able to do it.

---

<div class="post-metadata">

**Author:** ![NishantV](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/nishantv/32/38074_2.png) [@NishantV](https://community.developer.atlassian.com/u/NishantV)\
**Post date:** [July 31, 2019, 9:20am UTC](https://community.developer.atlassian.com/t/how-to-achieve-dropdown-in-jira-main-page-for-addons/30582/5 "2019-07-31T09:20:43Z")

</div>

It can be achieved using **web items** and **web sections** in your descriptor file… Please read the below to get an idea about it…

```auto
 "modules": {
        "webItems": [
            {
                "name": {
                    "value": "My dropdown"
                },
                "location": "system.top.navigation.bar",
                "url": "/hello-world",
                "key": "my-dropdown"
            },
            {
                "name": { "value": "A: First item" },
                "url": "/hello-world",
                "key": "dropdown-1-1",
                "location": "my-dropdown/dropdown-section-1",
                "weight": 1
            },
            {
                "name": { "value": "A: Second item" },
                "url": "/hello-world",
                "key": "dropdown-1-2",
                "location": "my-dropdown/dropdown-section-1",
                "weight": 2
            }
]
"webSections": [
            {
                "name": { "value": "Section A" },
                "location": "my-dropdown",
                "key": "dropdown-section-1"
            }
      ]
}

```

---

<div class="post-metadata">

**Author:** ![prasad.rambanam](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@prasad.rambanam](https://community.developer.atlassian.com/u/prasad.rambanam)\
**Post date:** [July 31, 2019, 9:33am UTC](https://community.developer.atlassian.com/t/how-to-achieve-dropdown-in-jira-main-page-for-addons/30582/6 "2019-07-31T09:33:44Z")

</div>

it worked as expected! Thanks a lot!
