When clicking the Create Change Order button on an Incident, is it possible to NOT pass the priority to the new change order?
You may create a special spel method called "cr::site_call_to_change_mapping" in an .spl file in you site/mods/majic directory. As far as I know, this one gets called after the priority and other attributes were copied from the incident to the new change order, so you would be able to reset the prioirity in it. Something like
cr::site_call_to_change_mapping( object chg_obj )
send_wait(0, chg_obj, "call_attr", "priority", "set_val", 3);
Hope this helps.
We had a similar question regarding the behavior of "Create ***" and were told that the code that performs the copy actions for the fields of the original ticket is encrypted spel code and cannot be changed. Of course if this in not the case then I would be interested in how it can be done also.
Thanks Michael. I just had to add a line to the existing chg_site.spl file to set the priority to 3.
Retrieving data ...