Skip to content
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

Filter by application subject #331

Closed
YopterMatbEro opened this issue Oct 12, 2023 · 2 comments
Closed

Filter by application subject #331

YopterMatbEro opened this issue Oct 12, 2023 · 2 comments
Assignees
Labels

Comments

@YopterMatbEro
Copy link

YopterMatbEro commented Oct 12, 2023

Salute!
I clearly don't understand something. Please help)
I want to check previously created applications through certain values in the SUBJECT of the application.
Let's imagine a case:
Once an application was created with the subject: “1999505404 the screen turns off on 20.09.2023 (the date is indicated in the CIS format, which is important, i.e. not through slashes, but through dots).
I want to use long number and date as keywords to search for existing applications with matches or absence of such applications. It is important that the search should be conducted by application topics, and not by the author’s ID, project ID or other data.

I read about cf_x, but which number is responsible for what? Or do I need to prescribe this myself somehow? And is this even necessary in my case?
In any case, many thanks for the help! I went through a bunch of options, but I can’t achieve the desired result.
p.s. Please forgive my stupidity. Before applying, I tried to google and ask questions to the AI, feeding it part of the documentation related to filters. But I'm here...

@maxtepkeev maxtepkeev self-assigned this Oct 29, 2023
@maxtepkeev
Copy link
Owner

maxtepkeev commented Oct 29, 2023

Hi @YopterMatbEro

If I get it right you're looking for a Redmine's contains operator, i.e. ~ so basically try the following:

issues = redmine.issue.filter(subject='~1999505404 20.09.2023')

for issue in issues:
    print(issue.subject)

This way you'll get all issues which have both 1999505404 and 20.09.2023 in their subject no matter the order.

We had a discussion about the other Redmine's filter operators in #57 if you're interested.

@maxtepkeev
Copy link
Owner

Closing this due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants