Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cutom field, select all child objects?

David McKay
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 7, 2025

Hello,

 

I have built out a CMDB is the Assets component of Jira, and linked it with a custom field and made it so they populate against the correct issues. My problem is I wish to change the selection behavior.

 

For example I have a Parent object in the schema called 'Virtual Machines', This has some assets in it, as well as a child object type, 'File servers' which has specific child objects inside it. e.g.

[]Virtual Machines >

   [] File Servers >

        server1

        server2

 

When I use the custom field to search the CMDB, everything displays as expected but it does not behave as such. When I select a parent object like 'file servers' it filters to those objects. When I tick the box to the left of 'file servers' nothing happens. e.g. it does not select all the child objects inside the file server parent object.

 

I can manually select each server but that defeats the purpose and many types are significant in size.

1 answer

0 votes
Admin Jovanio
Contributor
April 8, 2025

Hello @David McKay , welcome to comunnity.

Recommended best path:

If you already use ScriptRunner:

Use a Behavior to listen to the selection of the parent object and dynamically search for children via AQL, filling the field automatically.

If you don't have ScriptRunner:

Use Jira's native automation (Automation for Jira) + Assets API to search and fill children when detecting the parent.


David McKay
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 9, 2025

OK, so to be clear, I need to make an object with the class of the child objects and automate the selection of the objects... instead of the tick box that is presented by the searcher actually select something?

Suggest an answer

Log in or Sign up to answer