ListView.contains method uses only jobNames to check if an item is in the view.
On the contrary, ListView.getItems method can return an item not present in jobNames because of statusFilter and jobFilters checks.
So to obtain the correct result I need to use getItems and then check manually if an item is present in the collection.
Has been resolved some time between the report and 1.561, as ListView now distinguishes between jobNamesContains() and contains(), the latter of which checks getItems()
ListView.contains method uses only jobNames to check if an item is in the view.
On the contrary, ListView.getItems method can return an item not present in jobNames because of statusFilter and jobFilters checks.
So to obtain the correct result I need to use getItems and then check manually if an item is present in the collection.
Originally reported by mambu, imported from: ListView.contains method does not work when using regexp or job filters