python-redmine icon indicating copy to clipboard operation
python-redmine copied to clipboard

issue.filter - redminelib.exceptions.ResourceNotFoundError: Requested resource doesn't existHi,

Open Raoul555 opened this issue 4 years ago • 2 comments

Hi,

I'm trying to retrieve all issue from a specific query. I know the query_id, so I do:

(Pdb) response = self.redmine.issue.filter(query_id=1563)
(Pdb) L = list(response)

Query 1563 is own by me. It shows issues in the redmine GUI (with the URL https://<my_redmine_hostname>/projects/rd/issues?query_id=1563)

But this code return me:

(Pdb) L = list(response)
*** redminelib.exceptions.ResourceNotFoundError: Requested resource doesn't exist

Version, python 3.9:

(Pdb) redminelib.__version__
'2.3.0'

I don't see what I'm doing wrong, so wondering if this is not a bug.

Thanks, Raoul.

Raoul555 avatar Sep 21 '21 17:09 Raoul555

I think it's the same as #60

guillermoml avatar Oct 19 '21 08:10 guillermoml

I think it's the same as #60

I accidentally deleted a number, it's #260, not 60. You need to include the project_id.

guillermoml avatar Oct 19 '21 12:10 guillermoml

Yes, you have to include a project_id. Docs are updated with that info.

maxtepkeev avatar Dec 28 '22 14:12 maxtepkeev