anteo / redmine_custom_workflows

Allows to create custom workflows for Redmine
http://www.redmine.org/plugins/custom-workflows
GNU General Public License v2.0
182 stars 72 forks source link

Can I query the issues in the database and fetch a subset. #219

Closed gaurav-cointab closed 3 years ago

gaurav-cointab commented 3 years ago

I am in love with this plugin. This has helped me automate a lot of stuff. Now the next level will come if I can query the database in the before/after anywhere. So my exact query is this.

When saving a task, I need to know how many current issues are there in the database which satisfy some queries, like status, or has_parent. Now I want to get a list of issues from the database, and then I want to create a sub task in all of them in for loop.

If this possible, then please guide me in this?

gaurav-cointab commented 3 years ago

I found the IssueQuery.find and am using it. Facing some issues in it... But they are for the redmine github issue list.