[Rt-commit] rtir branch, 4.0/resolve-incident-comment, created. 4.0.1-2-g16c785d4
Jim Brandt
jbrandt at bestpractical.com
Fri May 10 10:08:37 EDT 2019
The branch, 4.0/resolve-incident-comment has been created
at 16c785d440ca8809873d85c0a2d8a134e9054e44 (commit)
- Log -----------------------------------------------------------------
commit 16c785d440ca8809873d85c0a2d8a134e9054e44
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Thu May 2 10:21:18 2019 -0400
Allow users to comment on incident ticket on resolve
The resolve page for incidents is built to allow comments to be
posted to all linked tickets, but does not provide a way to
comment on the incident ticket itself. Add the incident as an
option in the section showing the list of tickets to comment
on.
diff --git a/html/RTIR/Incident/Reply/index.html b/html/RTIR/Incident/Reply/index.html
index 0bf99645..401c66e4 100644
--- a/html/RTIR/Incident/Reply/index.html
+++ b/html/RTIR/Incident/Reply/index.html
@@ -109,6 +109,11 @@
% }
% }
+<h2><&|/l&>Incident</&></h2>
+<table><tr>
+<td><input type="checkbox" name="SelectedIncident" /></td><td><&|/l&>Add comment to incident ticket</&></td>
+</tr></table>
+
% unless ( $candidates ) {
<h2 class="no-recipients">Warning: no recipients!</h2>
% }
@@ -192,6 +197,12 @@ if ( $SubmitTicket && !$checks_failure ) {
);
}
}
+
+ if ( $SelectedIncident ) {
+ push @results, map { loc("Ticket [_1]: [_2]", $id, $_) }
+ ProcessUpdateMessage( TicketObj => $IncidentObj, ARGSRef => \%ARGS, KeepAttachments => 1 );
+ }
+
# manually clear this out since we told ProcessUpdateMessage to KeepAttachments
delete $session{'Attachments'}{ $ARGS{'Token'} };
@@ -279,5 +290,6 @@ $Order => RT->Config->Get('DefaultSearchResultOrder')
@SelectedReports => ()
@SelectedInvestigations => ()
@SelectedCountermeasures => ()
+$SelectedIncident => undef
$SubmitTicket => 0
</%ARGS>
-----------------------------------------------------------------------
More information about the rt-commit
mailing list