<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=ViewMyRequests</id>
	<title>ViewMyRequests - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=ViewMyRequests"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=ViewMyRequests&amp;action=history"/>
	<updated>2026-08-22T08:15:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=ViewMyRequests&amp;diff=4150&amp;oldid=prev</id>
		<title>Admin: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=ViewMyRequests&amp;diff=4150&amp;oldid=prev"/>
		<updated>2016-04-06T20:39:40Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is a modification to the [[SelfService]] feature of RT3. Requestors can call up a list of all outstanding tickets in order to see how their requests fit into a global picture, and can also view details of outstanding tickets for which they are a requestor.&lt;br /&gt;
&lt;br /&gt;
== Step 1 ==&lt;br /&gt;
&lt;br /&gt;
Follow the instructions to setup [[AutogeneratedPassword]] for requestors. You can add an extra condition here to limit this option to localdomain email addresses if you like:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;*RT::User::GenerateRandomNextChar = \&amp;amp;amp;RT::User::_GenerateRandomNextChar;&lt;br /&gt;
 if (&lt;br /&gt;
     ($Transaction-&amp;amp;gt;CreatorObj-&amp;amp;gt;id != $RT::Nobody-&amp;amp;gt;id) &amp;amp;amp;&amp;amp;amp;&lt;br /&gt;
 +    ($Transaction-&amp;amp;gt;CreatorObj-&amp;amp;gt;EmailAddress =~ /\@localdomain$/) &amp;amp;amp;&amp;amp;amp;&lt;br /&gt;
     (!$Transaction-&amp;amp;gt;CreatorObj-&amp;amp;gt;Privileged) &amp;amp;amp;&amp;amp;amp;&lt;br /&gt;
     ($Transaction-&amp;amp;gt;CreatorObj-&amp;amp;gt;__Value(&amp;#039;Password&amp;#039;) eq &amp;#039;*NO-PASSWORD*&amp;#039;)&lt;br /&gt;
     ) {&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Step 2 ==&lt;br /&gt;
&lt;br /&gt;
Apply the following patches in the base of your rt3 installation:&lt;br /&gt;
&lt;br /&gt;
 --- share/html/SelfService/Display.html 2004-12-17 10:42:40.000000000 +0000&lt;br /&gt;
 +++ share/html/SelfService/Display.html 2004-12-17 11:00:00.000000000 +0000&lt;br /&gt;
 @@ -127,4 +127,10 @@&lt;br /&gt;
  }&lt;br /&gt;
 &lt;br /&gt;
 +unless ( $Ticket-&amp;amp;gt;IsRequestor($session{&amp;#039;CurrentUser&amp;#039;}-&amp;amp;gt;Id) ) {&lt;br /&gt;
 +    $m-&amp;amp;gt;comp( &amp;#039;Error.html&amp;#039;,&lt;br /&gt;
 +              Why =&amp;amp;gt; loc(&amp;quot;No permission to display that ticket&amp;quot;) );&lt;br /&gt;
 +    $m-&amp;amp;gt;abort();&lt;br /&gt;
 +}&lt;br /&gt;
 +&lt;br /&gt;
  my ( $code, $msg );&lt;br /&gt;
 &lt;br /&gt;
 --- share/html/SelfService/Elements/MyRequests  2004-12-17 11:19:17.000000000 +0000&lt;br /&gt;
 +++ share/html/SelfService/Elements/MyRequests  2004-12-17 11:19:36.000000000 +0000&lt;br /&gt;
 @@ -34,5 +34,12 @@&lt;br /&gt;
  &amp;amp;lt;TR&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;TD&amp;amp;gt;&lt;br /&gt;
 +% if ( $Ticket-&amp;amp;gt;IsRequestor($session{&amp;#039;CurrentUser&amp;#039;}-&amp;amp;gt;Id) ) {&lt;br /&gt;
  &amp;amp;lt;a href=&amp;quot;&amp;amp;lt;%$RT::WebPath%&amp;amp;gt;/SelfService/Display.html?id=&amp;amp;lt;%$Ticket-&amp;amp;gt;Id%&amp;amp;gt;&amp;quot;&amp;amp;gt;&amp;amp;lt;%$Ticket-&amp;amp;gt;Id%&amp;amp;gt;: &amp;amp;lt;%$Ticket-&amp;amp;gt;Subject%&amp;amp;gt;&amp;amp;lt;/a&amp;amp;gt;&lt;br /&gt;
 +% } else {&lt;br /&gt;
 +&amp;amp;lt;%$Ticket-&amp;amp;gt;Id%&amp;amp;gt;: &amp;amp;lt;%$Ticket-&amp;amp;gt;Subject%&amp;amp;gt;&lt;br /&gt;
 +% }&lt;br /&gt;
 +&amp;amp;lt;/TD&amp;amp;gt;&lt;br /&gt;
 +&amp;amp;lt;TD&amp;amp;gt;&lt;br /&gt;
 +&amp;amp;lt;%$Ticket-&amp;amp;gt;RequestorAddresses%&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;/TD&amp;amp;gt;&lt;br /&gt;
  &amp;amp;lt;TD&amp;amp;gt;&lt;br /&gt;
 @@ -50,5 +57,4 @@&lt;br /&gt;
  my $MyTickets;&lt;br /&gt;
  $MyTickets = new RT::Tickets ($session{&amp;#039;CurrentUser&amp;#039;});&lt;br /&gt;
 -$MyTickets-&amp;amp;gt;LimitWatcher(TYPE =&amp;amp;gt; &amp;#039;Requestor&amp;#039;, VALUE =&amp;amp;gt; $session{&amp;#039;CurrentUser&amp;#039;}-&amp;amp;gt;EmailAddress);&lt;br /&gt;
  $MyTickets-&amp;amp;gt;OrderBy(FIELD =&amp;amp;gt; &amp;#039;id&amp;#039;, ORDER =&amp;amp;gt; &amp;#039;ASC&amp;#039;);&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The first patch ensures that users can only view details for their own tickets through the [[SelfService]] interface, and the second causes the [[SelfService]] interface to list all tickets rather than just those requested by the current user.&lt;br /&gt;
&lt;br /&gt;
== Step 3 ==&lt;br /&gt;
&lt;br /&gt;
Now you just need to add (globally) the user right of &amp;#039;[[ShowTicket]]&amp;#039; to the unprivileged users system group.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>