# How can I create a list of all defined behaviors?

**URL:** https://forum.library.adaptavist.com/t/how-can-i-create-a-list-of-all-defined-behaviors/545
**Category:** ScriptRunner
**Tags:** jira, behaviour
**Created:** [December 18, 2024, 10:40pm UTC](https://forum.library.adaptavist.com/t/how-can-i-create-a-list-of-all-defined-behaviors/545 "2024-12-18T22:40:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![PKl](https://avatars.discourse-cdn.com/v4/letter/p/eb8c5e/32.png) [@PKl](https://forum.library.adaptavist.com/u/PKl)
#### Post date: [December 18, 2024, 10:40pm UTC](https://forum.library.adaptavist.com/t/how-can-i-create-a-list-of-all-defined-behaviors/545/1 "2024-12-18T22:40:32Z")

</div>

For documentation purposes, I need a list of the defined behaviors with information about which projects they are assigned to. How can I create this in a script?

---

<div class="post-metadata">

### Author: ![nikolayr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.library.adaptavist.com/nikolayr/32/254_2.png) [@nikolayr](https://forum.library.adaptavist.com/u/nikolayr)
#### Post date: [January 7, 2025, 4:42pm UTC](https://forum.library.adaptavist.com/t/how-can-i-create-a-list-of-all-defined-behaviors/545/2 "2025-01-07T16:42:20Z")

</div>

Hi PaKIto,  
A call to [https://YOURJIRA/rest/scriptrunner/behaviours/latest/admin/behaviour](https://YOURJIRA/rest/scriptrunner/behaviours/latest/admin/behaviour)  
should return list of setup behaviors in JSON format.

---

<div class="post-metadata">

### Author: ![PKl](https://avatars.discourse-cdn.com/v4/letter/p/eb8c5e/32.png) [@PKl](https://forum.library.adaptavist.com/u/PKl)
#### Post date: [January 8, 2025, 5:56am UTC](https://forum.library.adaptavist.com/t/how-can-i-create-a-list-of-all-defined-behaviors/545/3 "2025-01-08T05:56:58Z")

</div>

Hi nikolayr,  
That was exactly what I was looking for. Thank you so much!
