Description of problem: You are able to query dynagroup definitions but you are not able to distinguish ordinary and pre-defined definitions. It's is possible to distinguish ordinary and pre-defined definitions via UI so it should be possible via CLI as well. It should be possible to add a filter to ResourceGroupDefinitionCriteria which would distinguish ordinary and pre-defined definitions.
in master commit b471b39dfe9aa4ce43fbb92299d357e387698bb1 Author: Libor Zoubek <lzoubek> Date: Wed Jun 25 14:27:02 2014 +0200 Bug 1098092 - It's not possible to query pre-defined dynagroup definitions via CLI Added boolean filter parameter to ResourceGroupDefinitionCriteria class - so group definitions can be filtered for "userDefinedOnly" - which excludes provided canned expressions.
Bulk close of items fixed in RHQ 4.12 If you think this is not solved, then please open a *new* BZ and link to this one.