Title: Creating and Editing Dynagroups Describe the issue: In "Example 12.9. Creating a Dynagroup" at https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Operations_Network/3.3/html/Writing_JON_Command-Line_Scripts/sect-Resources_and_Groups.html#Creating_and_Editing_Dynagroups multiple expressions are set via dynaGroupDef.setExpression("resource.type.name=Linux"); dynaGroupDef.setExpression("resource.type.category=Platform"); dynaGroupDef.setExpression("resource.availability=UP"); However, this does not work and only the last expression is taken. Looking at the source code of org.rhq.core.domain.resource.group.GroupDefinition it turns out that the expressions need to be separated by "\n", so it should look like dynaGroupDef.setExpression("resource.type.name=Linux\nresource.type.category=Platform\nresource.availability=UP"); Suggestions for improvement: Additional information:
Already updated in the 3.3 docs by https://bugzilla.redhat.com/show_bug.cgi?id=1375587 per https://access.redhat.com/solutions/2620071 I have duplicated this change in the 3.2 documentation. Git commit: https://gitlab.cee.redhat.com/tkelly/jon32/commit/fdf09cc8ac3f09e17d3a6df4150ccc1f87c5c88c Git merge: https://gitlab.cee.redhat.com/red-hat-jboss-operations-network-documentation/jon32/merge_requests/7 Pantheon Preview: https://access.qa.redhat.com/documentation/en-us/red_hat_jboss_operations_network/3.2/html-single/writing_jon_command-line_scripts/#dynagroups
Updated content now live on the customer portal: Version 3.3: https://access.redhat.com/documentation/en-us/red_hat_jboss_operations_network/3.3/html/writing_jon_command-line_scripts/sect-resources_and_groups#Creating_and_Editing_Dynagroups Version 3.2: https://access.redhat.com/documentation/en-us/red_hat_jboss_operations_network/3.2/html-single/writing_jon_command-line_scripts/#dynagroups