[Rt-commit] rtir branch, 5.0/enable-priority-as-string, created. 4.0.1rc1-120-gd6829b09
Craig Kaiser
craig at bestpractical.com
Thu Apr 16 09:12:41 EDT 2020
The branch, 5.0/enable-priority-as-string has been created
at d6829b09b8d88576c1796e8f961d633d01f149a7 (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 b048c55f734e076aeae6b824bd06146f85b3a22e
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/Advanced.html b/html/RTIR/Advanced.html
index 96a0d13a..e24c0e05 100644
--- a/html/RTIR/Advanced.html
+++ b/html/RTIR/Advanced.html
@@ -108,7 +108,7 @@
<&|/l&>Priority</&>:
</div>
<div class="value col-md-9">
- <&/Elements/SelectPriority, Name=>"Priority", Default=>$Ticket->Priority &>
+ <&/Elements/SelectPriority, Name=>"Priority", Default=>$Ticket->Priority, QueueObj => $Ticket->QueueObj &>
</div>
</div>
<div class="form-row">
@@ -116,7 +116,7 @@
<&|/l&>Final Priority</&>:
</div>
<div class="value col-md-9">
- <&/Elements/SelectPriority, Name=>"FinalPriority", Default=>$Ticket->FinalPriority &>
+ <&/Elements/SelectPriority, Name=>"FinalPriority", Default=>$Ticket->FinalPriority, QueueObj => $Ticket->QueueObj &>
</div>
</div>
</&>
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>
% }
diff --git a/html/RTIR/Incident/Create.html b/html/RTIR/Incident/Create.html
index 186c9e08..da112a28 100644
--- a/html/RTIR/Incident/Create.html
+++ b/html/RTIR/Incident/Create.html
@@ -245,8 +245,8 @@ if ( $ChildObj && $ChildObj->id && !$ChildObj->CurrentUserHasRight('ModifyTicket
name => 'Priority',
comp => '/Elements/SelectPriority',
args => {
- Name => 'InitialPriority',
- Default =>
+ Name => 'InitialPriority',
+ QueueObj => $QueueObj,
defined $ARGS{'InitialPriority'} && length $ARGS{'InitialPriority'}
? $ARGS{'InitialPriority'}
: $QueueObj->DefaultValue('InitialPriority')
@@ -257,7 +257,8 @@ if ( $ChildObj && $ChildObj->id && !$ChildObj->CurrentUserHasRight('ModifyTicket
name => 'Final Priority',
comp => '/Elements/SelectPriority',
args => {
- Name => 'FinalPriority',
+ Name => 'FinalPriority',
+ QueueObj => $QueueObj,
Default =>
defined $ARGS{'FinalPriority'} && length $ARGS{'FinalPriority'}
? $ARGS{'FinalPriority'}
commit d6829b09b8d88576c1796e8f961d633d01f149a7
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