<?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=PostQuestionsHere</id>
	<title>PostQuestionsHere - 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=PostQuestionsHere"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=PostQuestionsHere&amp;action=history"/>
	<updated>2026-08-21T21:58:25Z</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=PostQuestionsHere&amp;diff=2621&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=PostQuestionsHere&amp;diff=2621&amp;oldid=prev"/>
		<updated>2016-04-06T20:20:29Z</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;*PLEASE, DON&amp;#039;T POST QUESTION HERE. THIS WIKI IS NOT FOR DISCUSSIONS. POST YOUR QUESTIONS TO [[MailingLists]]*&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;ve dropped all unanswered questions, answered would live for a while because of historical reasons. --[[RuslanZakirov]]&lt;br /&gt;
&lt;br /&gt;
= Question =&lt;br /&gt;
&lt;br /&gt;
If anyone can decipher the error messages below, I&amp;#039;d be greatful. This occured on my first run of RT and is the entire pace. There are three sections here, error, context and code stack. It&amp;#039;s obviously a permissions problem, but I&amp;#039;m not sure where it needs to be fixed at.&lt;br /&gt;
&lt;br /&gt;
error:&lt;br /&gt;
&lt;br /&gt;
 mkdir /opt/rt3/var/mason_data/obj: Permission denied at /usr/lib/perl5/vendor_perl/5.8.0/HTML/Mason/Compiler/ToObject.pm line 96&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
= Answer =&lt;br /&gt;
&lt;br /&gt;
I think it&amp;#039;s installation problem, you&amp;#039;ve not specified right user:group of HTTP Server to RT&amp;#039;s ./configure script. RT by default use www:www, but for eg RH use apache:apache. You can fix it after you have installed RT with &amp;lt;code&amp;gt;chmod&amp;lt;/code&amp;gt;. //Ruslan&lt;br /&gt;
&lt;br /&gt;
Origiinal Poster: Thanks, that makes sense. When I chmod 777 the whole directory it works and my groups in Gentoo are apache, not www. That&amp;#039;ll do the trick. //jritchie&lt;br /&gt;
&lt;br /&gt;
= Answer 2 =&lt;br /&gt;
&lt;br /&gt;
If you&amp;#039;re on fedora core3 it could be an [[SELinux]] issue. Chnage /etc/selinux/conf from &amp;quot;restrictive&amp;quot; to &amp;quot;permissive&amp;quot;. Be sure and reboot after changing. See also:http://fedora.redhat.com/docs/selinux-faq-fc3test2/&lt;br /&gt;
&lt;br /&gt;
= Answer 3 =&lt;br /&gt;
&lt;br /&gt;
This is what I did on [[CentOS]] 4 (RHEL4) to get rid of the [[SELinux]] warnings about creating and rm&amp;#039;ing these Mason directories.&lt;br /&gt;
&lt;br /&gt;
First:&lt;br /&gt;
&lt;br /&gt;
 tail /var/log/messages | audit2allow&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
to get the error messages, one when Apache restarts and one when accessing RT&amp;#039;s web interface for the first time.&lt;br /&gt;
&lt;br /&gt;
Then add these results to /etc/selinux/targeted/src/policy/domains/program/apache.te&lt;br /&gt;
&lt;br /&gt;
 allow httpd_t var_lib_t:dir { rmdir setattr };&lt;br /&gt;
 allow httpd_t var_lib_t:dir create;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Load this policy and restart Apache:&lt;br /&gt;
&lt;br /&gt;
 cd /etc/selinux/targeted/src/policy; make load&lt;br /&gt;
 /etc/init.d/httpd restart&lt;br /&gt;
&lt;br /&gt;
= Answer 4 =&lt;br /&gt;
&lt;br /&gt;
You should chmod and chown the two following files to your [[RT User|RT_User]] /opt/rt3/var/mason_data/obj and /opt/rt3/var/mason_data/cache&lt;br /&gt;
&lt;br /&gt;
= Question =&lt;br /&gt;
&lt;br /&gt;
Is it possible for unprivileged users to see custom fields when creating a new ticket on the self service page? Or are custom fields only able to be used by privileged users?&lt;br /&gt;
&lt;br /&gt;
= Answer =&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s not a privelge problem, it&amp;#039;s code of [[SelfService]]. There were patch on RT mailing list which add this functionality to [[SelfService]]. If somebody has this patch please share it here.&lt;br /&gt;
&lt;br /&gt;
= Question =&lt;br /&gt;
&lt;br /&gt;
Is it possible to change the status of tickets by mail?&lt;br /&gt;
&lt;br /&gt;
Situation: rt3 listens &amp;quot;in front of&amp;quot; a mailing list &amp;amp;amp; creates tickets for requests sent to that list. Is it possible to answer via mail (To: requestor, Cc: List) and embed information in there that causes rt3 to change the ticket status? reqng e.g. resolves a ticket when an answer mail contains either a &amp;quot;q:res&amp;quot; at the top of the body or an &amp;quot;X-Request-Action: resolve&amp;quot; header.&lt;br /&gt;
&lt;br /&gt;
= Answer =&lt;br /&gt;
&lt;br /&gt;
We have a custom scrip set to do this based on the &amp;quot;RTC-Set-Owner&amp;quot; and &amp;quot;RTC-Set-Status&amp;quot; headers (obviously on our system we can set the owner via email as well). It&amp;#039;s quite simple, you could do much more with it than we are. Here&amp;#039;s what we have in the &amp;quot;Custom action cleanup code&amp;quot; section of an &amp;quot;On Correspond&amp;quot; scrip (don&amp;#039;t forget to set &amp;quot;1;&amp;quot; or something similar in &amp;quot;Custom action preparation code&amp;quot;):&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;my $header = &amp;#039;RTC-Set-Owner&amp;#039;;&lt;br /&gt;
 if ($self-&amp;amp;gt;TransactionObj-&amp;amp;gt;Attachments-&amp;amp;gt;First-&amp;amp;gt;GetHeader($header) ne &amp;#039;&amp;#039;)&lt;br /&gt;
 {&lt;br /&gt;
     $self-&amp;amp;gt;TicketObj-&amp;amp;gt;SetOwner($self-&amp;amp;gt;TransactionObj-&amp;amp;gt;Attachments-&amp;amp;gt;First-&amp;amp;gt;GetHeader($header));&lt;br /&gt;
 }&lt;br /&gt;
 $header = &amp;#039;RTC-Set-Status&amp;#039;;&lt;br /&gt;
 if ($self-&amp;amp;gt;TransactionObj-&amp;amp;gt;Attachments-&amp;amp;gt;First-&amp;amp;gt;GetHeader($header) ne &amp;#039;&amp;#039;)&lt;br /&gt;
 {&lt;br /&gt;
     $self-&amp;amp;gt;TicketObj-&amp;amp;gt;SetStatus($self-&amp;amp;gt;TransactionObj-&amp;amp;gt;Attachments-&amp;amp;gt;First-&amp;amp;gt;GetHeader($header));&lt;br /&gt;
 }&lt;br /&gt;
 1;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Question =&lt;br /&gt;
&lt;br /&gt;
Thanks to help from Ruslan and others, I have a scrip set up to add a Cc watcher based on the contents of a custom field and it works. However, I can&amp;#039;t figure out how to get it to send out the actual e-mail notification as part of the action commit code. Could anyone help me out?&lt;br /&gt;
&lt;br /&gt;
Here is my current scrip.&lt;br /&gt;
&lt;br /&gt;
 Condition:  User Defined&lt;br /&gt;
 Custom Condition:&lt;br /&gt;
   return undef unless ($self-&amp;amp;gt;TransactionObj-&amp;amp;gt;Type eq &amp;quot;Create&amp;quot;);&lt;br /&gt;
   return undef unless ($self-&amp;amp;gt;TicketObj-&amp;amp;gt;FirstCustomFieldValue(&amp;#039;Domain&amp;#039;) =~&lt;br /&gt;
   /GWI/i);&lt;br /&gt;
   return 1;&lt;br /&gt;
 Action: User Defined&lt;br /&gt;
 Prep:  1;&lt;br /&gt;
 Commit:&lt;br /&gt;
   $self-&amp;amp;gt;TicketObj-&amp;amp;gt;AddWatcher(&lt;br /&gt;
       Type =&amp;amp;gt; &amp;quot;Cc&amp;quot;,&lt;br /&gt;
       PrincipalId =&amp;amp;gt; 34,&lt;br /&gt;
       Email =&amp;amp;gt; &amp;quot;test\@example.com&amp;quot; );&lt;br /&gt;
   push(@{$self-&amp;amp;gt;{&amp;#039;To&amp;#039;}}, $self-&amp;amp;gt;TicketObj-&amp;amp;gt;Requestors-&amp;amp;gt;MemberEmailAddresses,&lt;br /&gt;
       $self-&amp;amp;gt;TicketObj-&amp;amp;gt;QueueObj-&amp;amp;gt;Cc-&amp;amp;gt;MemberEmailAddresses);&lt;br /&gt;
   return 1;&lt;br /&gt;
 Template: TestOnCreate&lt;br /&gt;
&lt;br /&gt;
= Answer =&lt;br /&gt;
&lt;br /&gt;
First of all, look better on doc for Ticket object. You need [[PrincipalId]] or Email argument only, both is redundancy.&lt;br /&gt;
&lt;br /&gt;
Ok, now you permanently added watcher for ticket. You need notifications. Here is problems begin :) You have to add next scrip: &amp;lt;code&amp;gt;On ... Notify Ccs with template ...&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* But Notify scrips use prep phase to fill recipients, because of it scrip don&amp;#039;t add your watcher to recipients on ticket create.&lt;br /&gt;
* But RT don&amp;#039;t allow sort scrips and DB don&amp;#039;t guaranty any specific order by default so it&amp;#039;s possible that your block would be executed after notify&amp;#039;s one.&lt;br /&gt;
&lt;br /&gt;
Solution: move notify scrip to stage [=[[TransactionBatch]]] and &amp;#039;addwatcher&amp;#039; scrip to stage [=[[TransactionCreate]]]. This feature avail since RT3.0.8. I think this could help.&lt;br /&gt;
&lt;br /&gt;
See also: [[ScripExecOrder]]&lt;br /&gt;
&lt;br /&gt;
//Ruslan&lt;br /&gt;
&lt;br /&gt;
= Question =&lt;br /&gt;
&lt;br /&gt;
How to a set a custom field based on data found in a newly created ticket?&lt;br /&gt;
&lt;br /&gt;
= Answer =&lt;br /&gt;
&lt;br /&gt;
Did you look into FAQ??? Mail gate section.&lt;br /&gt;
&lt;br /&gt;
= Question =&lt;br /&gt;
&lt;br /&gt;
Under RT Self Service, users (who cannot be granted rights) who submit a ticket cannot see the open ticket, or the closed ticket. Permissions issue? RT3&lt;br /&gt;
&lt;br /&gt;
= Answer =&lt;br /&gt;
&lt;br /&gt;
It seems to be a bug in old versions (before RT3) In RT3, be sure that the &amp;quot;email&amp;quot; is the same for requestor in ticket and user of Self Service.&lt;br /&gt;
&lt;br /&gt;
= Question =&lt;br /&gt;
&lt;br /&gt;
Can I have external auth for user? Either via ldap servers or let apaches access.cfg? Where can I find documentation on that?&lt;br /&gt;
&lt;br /&gt;
= Answer =&lt;br /&gt;
&lt;br /&gt;
You may refer to [[LdapOverlay]] which describe one possible solution.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>