redmine_custom_workflows
redmine_custom_workflows copied to clipboard
Please, give code example!
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:
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