Using JIRA v7.5.2 server.
I have component field and Sub Component field.
I want to create a groovy script that component will have his own list of sub components
For component "Data & Cache" have the following possible sub components: SubA, SubB, SubC
For component Manager have the following possible sub components: SubD, SubE
For rest of the components have an empty list of sub components
How can I achieve that and put it as a behavior ?