# Custom hierarchy selectable list based on issues, not values

**URL:** https://forum.library.adaptavist.com/t/custom-hierarchy-selectable-list-based-on-issues-not-values/238
**Category:** Scripts
**Tags:** jira, data-center, script-field
**Created:** [October 20, 2022, 9:57pm UTC](https://forum.library.adaptavist.com/t/custom-hierarchy-selectable-list-based-on-issues-not-values/238 "2022-10-20T21:57:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Holden](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@Holden](https://forum.library.adaptavist.com/u/Holden)
#### Post date: [October 20, 2022, 9:57pm UTC](https://forum.library.adaptavist.com/t/custom-hierarchy-selectable-list-based-on-issues-not-values/238/1 "2022-10-20T21:57:15Z")

</div>

Hi all,  
I’m looking for a way to create some sort of section/field in issue pages (create/edit and view screens) to show a list of items (imagine many issue picker fields order by 2 level hierarchy) and to be able to select them one by one or by selecting the upper level issue and automatically this will select all his lower level items.

the selection should be searchable

Thanks,  
Holden

---

<div class="post-metadata">

### Author: ![jechlin](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.library.adaptavist.com/jechlin/32/85_2.png) [@jechlin](https://forum.library.adaptavist.com/u/jechlin)
#### Post date: [October 21, 2022, 5:22pm UTC](https://forum.library.adaptavist.com/t/custom-hierarchy-selectable-list-based-on-issues-not-values/238/2 "2022-10-21T17:22:43Z")

</div>

You can use issue picker fields: [Issue Picker](https://docs.adaptavist.com/sr4js/latest/features/script-fields/built-in-script-fields/issue-picker)

You can use the value of any other field current set in the form to control the list of issues that will be displayed, or to default the value etc.

---

<div class="post-metadata">

### Author: ![Holden](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@Holden](https://forum.library.adaptavist.com/u/Holden)
#### Post date: [October 23, 2022, 6:35am UTC](https://forum.library.adaptavist.com/t/custom-hierarchy-selectable-list-based-on-issues-not-values/238/3 "2022-10-23T06:35:12Z")

</div>

Sure, but can I set a hierarchy view of the issue picker search list?  
Lets say I’m defining the JQL to bring Epics and their linked tasks, Is there a way to manipulate the issue picker drop down list to see 2 level hierarchy? Epics and below them linked tasks?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex019/uploads/adaptavistlibrary/original/1X/ceb18adf14fa58b4c6de03aa69ada8b07359620c.png) [@system](https://forum.library.adaptavist.com/u/system)
#### Post date: [April 21, 2023, 6:36am UTC](https://forum.library.adaptavist.com/t/custom-hierarchy-selectable-list-based-on-issues-not-values/238/4 "2023-04-21T06:36:09Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
