Skip to content

Filter on multiple roadmaps / target versions / fixed_version_id #205

Description

@nyrell

I am trying to use python-redmine to create a filter that returns all issues that NOT belong to target version A or target version B.

In Redmine I can create this filter easily and it results in the following URL:

https://REDMINE_URL/redmine/projects/PROJECT_ID/issues?utf8=%E2%9C%93
&set_filter=1
&sort=id%3Adesc
&f[]=fixed_version_id
&op[fixed_version_id]=!
&v[fixed_version_id][]=TARGET_VERSION_A_ID
&v[fixed_version_id][]=TARGET_VERSION_B_ID
&f[]=
&c[]=project
&c[]=subject
&c[]=fixed_version
&group_by=
&t[]=

How can I do this using python-redmine? Is it even possible?

I have been experimenting with things like:

redmine.issue.filter(project_id = 1, status_id = 'open', fixed_version_id = '156,134')

but so far I have not been able to get it to accept multiple target versions. It seems negation can be done with "!" like so:
redmine.issue.filter(project_id = 1, status_id = 'open', fixed_version_id = '!156')

Any ideas on how to get this to work?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions