Description of problem: Typing this command returns an error: var criteria = new ResourceCritiera(); The documentation listed below, section 2.3, indicates that should work. https://docs.redhat.com/docs/en-US/JBoss_Operations_Network/2.4/html/CLI_Guide/Working_with_the_CLI-Implicit_Variables.html Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. run-cli.sh 2. login rhqadmin rhqadmin 3. var criteria = new ResourceCritiera(); Actual results: ReferenceError: "ResourceCritiera" is not defined. (<Unknown source>#1) Expected results: should be identical to typing the following: var criteria = new org.rhq.core.domain.criteria.ResourceCriteria(); Additional info:
Adding additional information. This is not a regression. Same behavior in JON 2.4.1. Since it is not a regression I am removing the block rhq4....
Dropping to medium priority as there are workarounds and this is not a regression.
assigning to Deon to make sure our documentation reflects what actually works in the CLI
I believe this is just a typo actually: notice the difference: var criteria = new ResourceCritiera(); vs the correct: var criteria = new ResourceCriteria();
Hooray! Typos are easy to fix.
Link to the fixed typos: http://documentation-stage.bne.redhat.com/docs/en-US/JBoss_Operations_Network/100/html/Running_JON_Command-Line_Scripts/Running_the_CLI-Running_the_JON_CLI.html#Working_with_the_CLI-Implicit_Variables If you look for ResourceCritiera, it shouldn't be there.
Updated link: http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/3.1/html/Dev_Writing_JON_Command-Line_Scripts/Working_with_the_CLI-Implicit_Variables.html
Changes looks fine on the comment #8 link.
Bulk closing of issues that were VERIFIED, had no target release and where the status changed more than a year ago.