[Rt-commit] rtir branch 5.0/resolve-incident-comment created. 5.0.1-43-g37d10b75
BPS Git Server
git at git.bestpractical.com
Wed Dec 22 13:47:57 UTC 2021
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rtir".
The branch, 5.0/resolve-incident-comment has been created
at 37d10b75761aeeb3518b8b61a157f96748304632 (commit)
- Log -----------------------------------------------------------------
commit 37d10b75761aeeb3518b8b61a157f96748304632
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Thu May 2 10:21:18 2019 -0400
Allow users to reply/comment incident on reply/resolve children pages
E.g. 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 8d1a67de..3baac942 100644
--- a/html/RTIR/Incident/Reply/index.html
+++ b/html/RTIR/Incident/Reply/index.html
@@ -124,6 +124,14 @@
% }
% }
+<div class="form-row">
+ <div class="col-12">
+ <h4><&|/l&>Incident</&></h4>
+ <input type="checkbox" id="SelectedIncident" name="SelectedIncident" <% $ARGS{SelectedIncident} ? 'checked="checked"' : '' |n %> value="<% $IncidentObj->Id %>">
+ <label for="SelectedIncident"><b><% loc('Add the correspondence/comment to current incident ticket also') %></b></label>
+ </div>
+</div>
+
% unless ( $candidates ) {
<& /Elements/ListActions, actions => loc('Warning: no recipients!'), titlebox => { class => 'error-titlebox', bodyclass => 'py-0' } &>
% }
@@ -212,6 +220,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'} };
@@ -299,5 +313,6 @@ $Order => RT->Config->Get('DefaultSearchResultOrder')
@SelectedReports => ()
@SelectedInvestigations => ()
@SelectedCountermeasures => ()
+$SelectedIncident => undef
$SubmitTicket => 0
</%ARGS>
-----------------------------------------------------------------------
hooks/post-receive
--
rtir
More information about the rt-commit
mailing list