Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Synergy ITSM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Public Documentation
Synergy ITSM
Commits
4f6e3e7a
Commit
4f6e3e7a
authored
Mar 25, 2019
by
Elizaveta Kakhovskaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Incident_structure.rst
parent
8c19f871
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
41 deletions
+0
-41
custom_manual/Incident_structure.rst
custom_manual/Incident_structure.rst
+0
-41
No files found.
custom_manual/Incident_structure.rst
View file @
4f6e3e7a
...
@@ -176,47 +176,6 @@
...
@@ -176,47 +176,6 @@
Рис.
Рис.
Поле Приоритет ``itsm_form_incident_priority`` не доступно пользователю на редактирование и вычисляется исходя из значений
полей Срочность ``itsm_form_incident_urgency`` и Воздействие ``itsm_form_incident_influence`` в основном скрипте scipt.js формы обращения:
::
// вычисление приоритета
(function calculatePriority() {
var CRITICAL_INCIDENT = 1;
var itsm_form_incident_urgency = "itsm_form_incident_urgency";
var itsm_form_incident_influence = "itsm_form_incident_influence";
var itsm_form_incident_major = "itsm_form_incident_major";
var itsm_form_incident_status = "itsm_form_incident_status";
var itsm_form_incident_priority = "itsm_form_incident_priority";
var urgencyModel = playerModel.getModelWithId(itsm_form_incident_urgency);
var influenceModel = playerModel.getModelWithId(itsm_form_incident_influence);
var majorModel = playerModel.getModelWithId(itsm_form_incident_major);
var priorityModel = playerModel.getModelWithId(itsm_form_incident_priority);
function calcPriority(){
var urgencyValue = parseInt(urgencyModel.getValue()[0]);
var influenceValue = parseInt(influenceModel.getValue()[0]);
var isMajor = majorModel.getValue() !== null && majorModel.getValue().length > 0 && majorModel.getValue()[0] == '1';
var priorityValue = urgencyValue + influenceValue - 1;
if(isMajor) {
priorityValue = CRITICAL_INCIDENT;
}
priorityModel.setValue(priorityValue+"");
}
on(urgencyModel, "valueChange", "calcPriority", calcPriority);
on(influenceModel, "valueChange", "calcPriority", calcPriority);
on(majorModel, "valueChange", "calcPriority", calcPriority);
}());
7. Связанные сущности
7. Связанные сущности
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment