[Rt-commit] rt branch, 5.0/configurable-linked-queue-portlets, repushed
Blaine Motsinger
blaine at bestpractical.com
Thu Apr 30 15:30:05 EDT 2020
The branch 5.0/configurable-linked-queue-portlets was deleted and repushed:
was 35790bc70eba9bb245dd01e0c497df017b283b1e
now 59f573997f98e451b3ad285059833087fbbed8fb
1: e3ddbf40d4 = 1: e3ddbf40d4 Increase the size of the Width and Height input fields.
2: 105831eb0e = 2: 105831eb0e No need to specify character-set for mysqldump because client above includes it
3: b94ac9ee23 = 3: b94ac9ee23 Split character-set options for server/client as they have different names
4: 040903b84e = 4: 040903b84e Change config section "Ticket display" to "Ticket options".
5: 85f057077a = 5: 85f057077a Move the HideOneTimeSuggestions option to the "Ticket options" section
6: 14ea72ae48 = 6: 14ea72ae48 Recommend installing into a fresh /opt/rt5 directory
7: f29217c2dd = 7: f29217c2dd Clarify notes on when Articles was added to core
8: 9bba695a34 = 8: 9bba695a34 Separate changes from general upgrading notes
9: 0833aca8ef = 9: 0833aca8ef Add link back to the ticket from a single transaction page.
10: 566926c3d2 = 10: 566926c3d2 Convert linked classes in Articles > Search to a portlet.
11: 0a6d54ad7b = 11: 0a6d54ad7b Core RT-Extension-CustomRole-Visibility
12: 6691e962d9 = 12: 6691e962d9 Migrate Visibility.html to elevator themes
13: aef6fdb99e = 13: aef6fdb99e Add test for customrole visibility
14: 6614c842a8 = 14: 6614c842a8 Make [Update] in Articles > Overview look like Take link in ticket searches.
15: ec85db1726 = 15: ec85db1726 Make headers smaller in Article search results.
16: d76940b63b = 16: d76940b63b Change "Modify this search" to the gear icon in the article search.
17: ba44d1d9f1 = 17: ba44d1d9f1 Add formatting to the "Topics" heading in article search results.
18: 83632ed4f9 = 18: 83632ed4f9 Remove "Search results" header in the article search result page.
19: 8c93f3021f = 19: 8c93f3021f Format newest/most recently updated article headers.
20: a954d18edd = 20: a954d18edd Move the data table in charts lower, aligned with the chart.
21: 30873e18f7 = 21: 30873e18f7 No need to log "No META info" as META info is optional
22: 99a8edfb22 = 22: 99a8edfb22 Move unread message count to core
23: f66ec078dc = 23: f66ec078dc Refactor unread message count to be consistent with core
24: 53f5f99534 ! 24: d5581ef0de Add a configurable queue portlet to ticket display page
@@ -5,6 +5,70 @@
RTIR Incident page displays links portlets by queue. Isolating
these portlets allows a user to view linked tickets based on the
queue and their relations on ticket display page.
+
+diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
+--- a/etc/RT_Config.pm.in
++++ b/etc/RT_Config.pm.in
+@@
+
+ Set($WikiImplicitLinks, 0);
+
++=item C<%LinkedQueuePortlets>
++
++C<%LinkedQueuePortlets> allows you to display links to tickets in
++another queue in a stand-alone portlet on the ticket display page.
++This makes it easier to highlight specific ticket links separate from
++the standard Links portlet.
++
++For example, you might have a Sales queue that tracks incoming product
++requests, and for each ticket you create a linked ticket in the Shipping
++queue for each outgoing shipment. You could add the configuration below
++to create a stand-alone Shipping portlet on tickets in the Sales queue,
++making it easier to see those linked tickets. You might have a Returns
++queue to show as well.
++
++ Set( %LinkedQueuePortlets, (
++ 'Sales' => [
++ { 'Shipping' => [ 'All' ] },
++ { 'Returns' => [ 'RefersTo' ] },
++ ],
++ 'Shipping' => [
++ { 'Postage' => [ 'DependsOn', 'HasMember' ] },
++ ],
++ ));
++
++You can include multiple linked queues in each ticket and they are
++displayed in the order you define them in the configuration. The values
++are RT link types: 'DependsOn', 'DependedOnBy', 'HasMember'
++(children), 'MemberOf' (parents), 'RefersTo', and 'ReferredToBy'.
++'All' lists all linked tickets. You can include multiple link types for
++each as shown above.
++
++=cut
++
++Set( %LinkedQueuePortlets, () );
++
++=item C<%LinkedQueuePortletFormats>
++
++C<%LinkedQueuePortletFormats> defines the format for displaying
++linked tickets in each linked queue portlet defined by C<%LinkedQueuePortlets>.
++
++To change just the General list you would do:
++
++ Set(%LinkedQueuePortletFormats, General => 'modified configuration');
++
++=cut
++
++Set( %LinkedQueuePortletFormats,
++ Default =>
++ q{'<b><a href="__WebPath__/Ticket/Display.html?id=__id__">__id__</a></b>/TITLE:#',}.
++ q{'<b><a href="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a></b>/TITLE:Subject',}.
++ q{Status},
++);
++
+ =item C<$PreviewScripMessages>
+
+ Set C<$PreviewScripMessages> to 1 if the scrips preview on the ticket
diff --git a/share/html/Ticket/Elements/ShowLinkedQueues b/share/html/Ticket/Elements/ShowLinkedQueues
new file mode 100644
@@ -174,7 +238,7 @@
+$TicketObj
+$OrderBy => 'Due'
+$Rows => 8
-+$Format => RT->Config->Get( 'LinkedQueuePortletFormat' )
++$Format => RT->Config->Get( 'LinkedQueuePortletFormats' )->{ 'Default' }
+</%ARGS>
diff --git a/share/html/Ticket/Elements/ShowSummary b/share/html/Ticket/Elements/ShowSummary
25: 6927815148 < --: ------- Add docs for the new Linked Queue Portlets configs
26: ca34f59426 = 25: 49f3a45e2b Add test for Linked Queue Portlets
27: 35790bc70e < --: ------- Update queue portlets documentation
--: ------- > 26: 59f573997f Use LinkedQueuePortletFormats for ShowLinkedQueues
More information about the rt-commit
mailing list