redmine_custom_workflows icon indicating copy to clipboard operation
redmine_custom_workflows copied to clipboard

Please, give code example!

Open qawsed55 opened this issue 1 year ago • 0 comments

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

qawsed55 avatar Mar 12 '23 17:03 qawsed55