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
d7cd07a0
Commit
d7cd07a0
authored
Mar 11, 2019
by
Elizaveta Kakhovskaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Incident_structure.rst
parent
0438a00f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
custom_manual/Incident_structure.rst
custom_manual/Incident_structure.rst
+48
-0
No files found.
custom_manual/Incident_structure.rst
View file @
d7cd07a0
...
@@ -164,6 +164,54 @@
...
@@ -164,6 +164,54 @@
6. Затронутая инфраструктура
6. Затронутая инфраструктура
Поле "Затронутый сервис" ``itsm_form_incident_servicelink`` является ключевым - по нему, а также по полям
* ``itsm_form_incident_author`` (группа пользователя, являющиегося автором обращения)
* ``itsm_form_incident_priority`` (приоритет)
осуществляется связь обращения с SLA, получение длительности и расчет сроков исполнения обращения с указанными параметрами.
Поле Приоритет ``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);
}());
::
.. figure:: _static/Incident_form_service.png
.. figure:: _static/Incident_form_service.png
...
...
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