Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-sla-management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-sla-management
Commits
d6af39fd
Commit
d6af39fd
authored
Nov 20, 2014
by
jago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- SLA Management:
Fixed issues with traffic light status sweeper
parent
625e0e68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
intranet-sla-management-procs.tcl
tcl/intranet-sla-management-procs.tcl
+25
-2
No files found.
tcl/intranet-sla-management-procs.tcl
View file @
d6af39fd
...
...
@@ -395,6 +395,7 @@ ad_proc -public im_sla_ticket_traffic_light_sweeper_helper {
{
-debug_p 0
}
{
-ticket_id
""
}
{
-limit
""
}
{
-reset_closed_tickets_p 0
}
}
{
Calculates the green/yellow/red status of tickets depending on
solution time and SLA parameters.
...
...
@@ -440,10 +441,10 @@ ad_proc -public im_sla_ticket_traffic_light_sweeper_helper {
t.ticket_status_id in (
[
join
[
im_sub_categories
[
im_ticket_status_open
]]
","
]
) and
sla.project_status_id in (
[
join
[
im_sub_categories
[
im_project_status_open
]]
","
]
)
"
if
{
""
!=
$ticket
_id
}
{
# Manually specified the ticket
(
for
debugging?
)
set open_tickets_sql
"
set open_tickets_sql
"
select p.parent_id as sla_id,
p.on_track_status_id,
t.*,
...
...
@@ -453,6 +454,28 @@ ad_proc -public im_sla_ticket_traffic_light_sweeper_helper {
where t.ticket_id = p.project_id and
t.ticket_id = :ticket_id
"
}
else
{
if
{
$reset
_closed_tickets_p
}
{
# Set the status of all closed tickets to
""
# taking into account performance.
db_dml reset_closed_tickets
"
update im_projects
set on_track_status_id = null
where on_track_status_id is not null and
project_id in (
select t.ticket_id
from im_tickets t,
im_projects p
where t.ticket_id = p.project_id and
p.on_track_status_id is not null and
t.ticket_id not in (
select ticket_id
from (
$open
_tickets_sql) t
)
)
"
}
}
if
{
""
!=
$limit
&& 0 !=
$limit
}
{
...
...
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