New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regexp in custom field filter #164

Closed
DennyWeinberg opened this Issue Feb 20, 2017 · 2 comments

Comments

2 participants
@DennyWeinberg

DennyWeinberg commented Feb 20, 2017

We can use the ~ sign before the string to search if we want to find all issues containing a string in a custom field.

Example:
list(redmine.issue.filter(**{'cf_%s' % (conf.re_cf_jiraLinkId): '~LX-2822'}))

This finds all issues containing LX-2822 in the custom field with id conf.re_cf_jiraLinkId.

Could you please add this to the doc?

@maxtepkeev maxtepkeev self-assigned this Feb 20, 2017

@maxtepkeev maxtepkeev added the docs label Feb 20, 2017

@maxtepkeev

This comment has been minimized.

Owner

maxtepkeev commented Feb 20, 2017

Cool. I'll definitely add that. Thanks.

@maxtepkeev

This comment has been minimized.

Owner

maxtepkeev commented Mar 12, 2017

This information was added to the new docs that will be available together with v2.0.0 in the end of March.

@maxtepkeev maxtepkeev closed this Mar 12, 2017

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