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

Please, give code example! #306

Open qawsed55 opened 1 year ago

qawsed55 commented 1 year ago

Hello! Sorry for pore English ( I have some projects, trackers, roles and users. I need to change assignee, when status changing: for tracker_in_project (other projects with this trackers will have another setup). As I think (may be wrong), easiest way to setup array with all I need and code will parse this and make all magic. Here pic with, where I try to explain:

image

Code will be something like (sorry, I do no know Ruby at all) :

If status in project_name with tracker_name changes from status_was to status_is change assignee to user_name (or group_name)

array_to_change {
PROJECT A, TRACKER1, STATUS1, STATUS2, Mike;
PROJECT A, TRACKER1, STATUS2, STATUS3, Anna;
PROJECT A, TRACKER1, STATUS2, STATUS4, Anna;
PROJECT A, TRACKER1, STATUS3, STATUS1, George;
}

Looks like this function has Additionals plugin, but without settings and just for one status\role

image