[Rt-commit] rtir branch, 5.0/enable-priority-as-string, created. 4.0.1rc1-120-gc7c5df08
Craig Kaiser
craig at bestpractical.com
Thu Apr 16 09:04:13 EDT 2020
The branch, 5.0/enable-priority-as-string has been created
at c7c5df089d841ffe0d457a4dbb116e5c960b2047 (commit)
- Log -----------------------------------------------------------------
commit 0c3da891f037e06cb39bc0b84c365620f1d3e0ab
Author: Craig Kaiser <craig at bestpractical.com>
Date: Thu Apr 16 08:44:26 2020 -0400
Add priority class to incidents display priority div
Without this class the "\" will not be hidden when there is no
final priority value.
diff --git a/html/RTIR/Incident/Display.html b/html/RTIR/Incident/Display.html
index bf1a0489..82536387 100644
--- a/html/RTIR/Incident/Display.html
+++ b/html/RTIR/Incident/Display.html
@@ -116,7 +116,7 @@
<span class="current-value"><% $TicketObj->Subject %></span>
</div>
</div>
- <div class="form-row">
+ <div class="priority form-row">
<div class="label col-md-3">
<&|/l&>Priority</&>:
</div>
commit b994fc703f3d89150ea860db83580dab408cd911
Author: Craig Kaiser <craig at bestpractical.com>
Date: Thu Apr 16 08:57:25 2020 -0400
Add Priority to RTIR portlets and orderby Priority 2nd
diff --git a/etc/RTIR_Config.pm b/etc/RTIR_Config.pm
index b0534476..fe31174a 100644
--- a/etc/RTIR_Config.pm
+++ b/etc/RTIR_Config.pm
@@ -457,7 +457,7 @@ Set(%RTIRSearchResultFormats,
DueIncidents =>
q{'<b><a href="__RTIRTicketURI__">__id__</a></b>/TITLE:#',}.
- q{'<b><a href="__RTIRTicketURI__">__Subject__</a></b>/TITLE:Subject',DueRelative,OwnerName,'UpdateStatus/TITLE:Updates'},
+ q{'<b><a href="__RTIRTicketURI__">__Subject__</a></b>/TITLE:Subject',DueRelative,OwnerName,__Priority__,'UpdateStatus/TITLE:Updates'},
AbandonIncidents =>
q{'<b><a href="__RTIRTicketURI__">__id__</a></b>/TITLE:#',}.
diff --git a/html/RTIR/Elements/DueIncidents b/html/RTIR/Elements/DueIncidents
index 1a0e1c3a..0d8ec76f 100644
--- a/html/RTIR/Elements/DueIncidents
+++ b/html/RTIR/Elements/DueIncidents
@@ -91,6 +91,6 @@ $Query => RT::IR->ActiveQuery( Lifecycle => 'incidents', ($m->{'RTIR_
$Format => RT->Config->Get('RTIRSearchResultFormats')->{'DueIncidents'}
$Rows => undef
$Page => 1
-$OrderBy => 'Due'
+$OrderBy => ['Due', 'Priority']
$Order => 'ASC'
</%ARGS>
commit 6bd295355043984abdb914d3defc7e670b3ca9d1
Author: Craig Kaiser <craig at bestpractical.com>
Date: Thu Apr 16 09:00:34 2020 -0400
Pass queue object for priority as string to check
diff --git a/html/RTIR/Edit.html b/html/RTIR/Edit.html
index 1ab25ba8..0fbce1cc 100644
--- a/html/RTIR/Edit.html
+++ b/html/RTIR/Edit.html
@@ -154,7 +154,11 @@
<&|/l&>Priority</&>:
</div>
<div class="value col-md-9">
- <&/Elements/SelectPriority, Name => 'Priority', Default => $ARGS{'Priority'} || $Ticket->Priority &>
+ <&/Elements/SelectPriority,
+ Name => 'Priority',
+ Default => $ARGS{'Priority'} || $Ticket->Priority,
+ QueueObj => $Ticket->QueueObj
+ &>
</div>
</div>
% }
commit c7c5df089d841ffe0d457a4dbb116e5c960b2047
Author: Craig Kaiser <craig at bestpractical.com>
Date: Thu Apr 16 09:00:57 2020 -0400
Add PriorityAsString config for Incidents
diff --git a/etc/RTIR_Config.pm b/etc/RTIR_Config.pm
index fe31174a..1e0cc60c 100644
--- a/etc/RTIR_Config.pm
+++ b/etc/RTIR_Config.pm
@@ -315,6 +315,17 @@ unless (defined $default_queue) {
RT->Config->Set('DefaultQueue','Incident Reports');
}
+Set( $EnablePriorityAsString, 1 );
+
+Set( %PriorityAsString, (
+ 'Incidents' =>
+ {
+ 'Medium' => 50,
+ 'High' => 100,
+ 'Low' => 20
+ }
+));
+
=back
-----------------------------------------------------------------------
More information about the rt-commit
mailing list