I have used Automation in JIRA and created a rule which runs a SIL script.
the main script is:
lfWatch("assignee",{"assignee"}, "Update1.sil");
lfWatch("customfield_16004", {"customfield_16004"}, "Update2.sil");
This one monitors if either the assignee field or another custom field changes and update1.sil and update2.sil has the following code.
customfield_16004=argv["assignee"];
AND
assignee=argv["customfield_16004"];
But this does not work. I do not get any syntax error. Need help.