{"record":{"id":"09f36ce373afd62c","repo":"jenkinsci/jenkins","slug":"no-view-or-item-group-with-the-given-name-name","errorCode":null,"errorMessage":"No view or item group with the given name '{name}' found.","messagePattern":"No view or item group with the given name '(.+?)' found\\.","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"core/src/main/java/hudson/cli/ListJobsCommand.java","lineNumber":74,"sourceCode":"        // If name is given retrieve jobs for the given view.\n        if (name != null) {\n            View view = h.getView(name);\n\n            if (view != null) {\n                jobs = view.getAllItems();\n            }\n            // If no view was found, try with an item group.\n            else {\n                final Item item = h.getItemByFullName(name);\n\n                // If item group was found use it's jobs.\n                if (item instanceof ModifiableTopLevelItemGroup) {\n                    jobs = ((ModifiableTopLevelItemGroup) item).getItems();\n\n                }\n                // No view and no item group with the given name found.\n                else {\n                    throw new IllegalArgumentException(\"No view or item group with the given name '\" + name + \"' found.\");\n                }\n            }\n        }\n        // Fallback to listing all jobs.\n        else {\n            jobs = h.getItems();\n        }\n\n        // Print all jobs.\n        for (TopLevelItem item : jobs) {\n            stdout.println(item.getName());\n        }\n\n        return 0;\n    }\n}\n","sourceCodeStart":56,"sourceCodeEnd":91,"githubUrl":"https://github.com/jenkinsci/jenkins/blob/2e228ff40b14dbc8b14ffbc6edf0e4383cf744fc/core/src/main/java/hudson/cli/ListJobsCommand.java#L56-L91","documentation":"Error \"No view or item group with the given name '{name}' found.\" thrown in jenkinsci/jenkins.","triggerScenarios":"Raised when the list-jobs CLI command is given a view or item group name that does not exist in Jenkins.","commonSituations":"See trigger scenarios.","solutions":["Run 'list-views' or check the Jenkins UI to confirm the exact view or item group name.","Quote names containing spaces.","Check for typos; names are case-sensitive.","Verify you have read permission on the view or item group."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2e228ff40b14dbc8b14ffbc6edf0e4383cf744fc","analyzedAt":"2026-08-14T07:07:15.274Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}