JQL Extensions for Subcomponents

The plugin also adds JQL for subcomponents,  subcomponentsofUsing this JQL you can find all subcomponents of a given component. This JQL function takes at least one argument, name of component. In addition to subcomponents of the given component the plugin also returns component itself by default. You can pass "false" as a second argument to this function to instruct it not to return component itself. You can either pass virtual component or a real project component to this JQL. 

project = ERP and component in subcomponentsof(“Client”)
project = ERP and component in subcomponentsof(“Client”, "false")
project = ERP and component in subcomponentsof(“Client”, "true")