AnsweredAssumed Answered

Data list assignee variable to run script

Question asked by efvrvo on Feb 22, 2011
Latest reply on Jan 14, 2013 by krups
Hi

I want to run a script that will start a workflow every time I create a Issue in th eissue list. I created the rule and the script and everything works if the script looks as follows

var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "jbpm$wf:adhoc";
workflow.parameters["bpm:workflowDescription"] = document.properties.name+"-"+ document.properties.title + " - " + document.properties.description;
workflow.parameters["bpm:assignee"] = people.getPerson("admin");
workflow.execute(document);

I now want to change the workflow.parameters["bpm:assignee"] = people.getPerson("admin"); so that it picks up the "assigned to" value in the issue list. Thus when I create a issue and assign it to a user it will start an adhoc workflow against that user. Can anybody help me with this problem

Outcomes