Commit 7d7a2952 authored by Elizaveta Kakhovskaya's avatar Elizaveta Kakhovskaya

Update Q3_massoperation

parent e20dcc37
......@@ -11,9 +11,29 @@
3. В скрипт формы "Операции над выборкой"
view.playerView.getViewWithId('itsm_form_incidents_operation_servicelink').setVisible(val==2);
view.playerView.getViewWithId('itsm_form_incidents_operation_type').setVisible(val==2);
*Прим. В val==2 - указывается код нужного вам статуса*
4. В скрипт `event.blocking.interpreter.incidents.operation`
в раздел try добавить
let operation_type = jSynergy.server.getValue('itsm_form_incidents_operation_type');
let operation_servicelink = jSynergy.server.getValue('itsm_form_incidents_operation_servicelink');
и там же в раздел нужного статуса добавить:
jSynergy.server.setValue('itsm_form_incident_type',{
key: '' + operation_type.key,
value: '' + operation_type.value
});
jSynergy.server.setValue('itsm_form_incident_servicelink',{
key: '' + operation_servicelink.key,
value: '' + operation_servicelink.value
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment