GothenburgBitFactory / bugwarrior

Pull github, bitbucket, and trac issues into taskwarrior
http://pypi.python.org/pypi/bugwarrior
GNU General Public License v3.0
740 stars 209 forks source link

[Redmine] Add project_id to arguments to retrieve issues #883

Closed CaptainQuirk closed 2 years ago

CaptainQuirk commented 2 years ago

Hi there,

I would like to know if it was possible to add a project_id configuration that would be used as a filter when getting the issues from Redmine ?

Thanks in advance !

ryneeverett commented 2 years ago

Looks like this service is missing a way to filter issues. If possible, I'd prefer a more general "query" configuration field which would allow filtering against arbitrary parameters in the redmine api.

CaptainQuirk commented 2 years ago

I could take care of that ! What form do you have in mind ? Would simply a query: string property of the configuration class that would be appended to the assigned_to_id ? Something like that :

redmine.query = project_id=42&status_id=!666

?

ryneeverett commented 2 years ago

I would take a look the github and gitlab services for examples of how we handle query strings.

Your configuration field and configuration example look correct, but I don't think we would append them to the assigned_to_id. To allow for maximum flexibility without configuration sprawl, we've been having query strings completely override the "conventional" bugwarrior query, so if you still wanted to limit by assignee you'd have to add that to the query string.

If possible, it might be nice to implement assigned_to_id=me as the default query string if it's possible to avoid alternate code paths -- but it's not always possible.

cc @fmauch

CaptainQuirk commented 2 years ago

I just opened #886 !

ryneeverett commented 2 years ago

Resolved in #886.