<?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=InitialPriorityOnSelfService</id>
	<title>InitialPriorityOnSelfService - 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=InitialPriorityOnSelfService"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=InitialPriorityOnSelfService&amp;action=history"/>
	<updated>2026-08-22T10:37:20Z</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=InitialPriorityOnSelfService&amp;diff=1668&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=InitialPriorityOnSelfService&amp;diff=1668&amp;oldid=prev"/>
		<updated>2016-04-06T20:11:25Z</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;= Allow SelfService-users to set the initial priority of a ticket =&lt;br /&gt;
&lt;br /&gt;
The following combination of a custom field and scrip allows users of the [[SelfService]] interface to defined an initial priority for a ticket (which gets copied into the ticket&amp;#039;s priority on creation).&lt;br /&gt;
&lt;br /&gt;
== Custom Field ==&lt;br /&gt;
&lt;br /&gt;
* Create Custom Field &amp;quot;Initial Priority&amp;quot;&lt;br /&gt;
** Validation: (?#0-100)^(\d|[[1-9]]\d|100)$&lt;br /&gt;
* Custom Field &amp;quot;Initial Priority&amp;quot;: Grant &amp;quot;[[SeeCustomField]]&amp;quot; to Group &amp;quot;[[SelfService]]-Clients&amp;quot;&lt;br /&gt;
* Custom Field &amp;quot;Initial Priority&amp;quot;: Grant &amp;quot;[[ModifyCustomField]]&amp;quot; to Group &amp;quot;[[SelfService]]-Clients&amp;quot;&lt;br /&gt;
* In Queue &amp;quot;[[YourQueue]]&amp;quot;: Select Custom Field &amp;quot;Initial Priority&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Custom Scrip ==&lt;br /&gt;
&lt;br /&gt;
* In &amp;quot;Configuration -&amp;amp;gt; Global -&amp;amp;gt; Scrips&amp;quot; create new Scrip &amp;quot;On Create Copy Initial Priority to Priority&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Custom condition ===&lt;br /&gt;
&lt;br /&gt;
 return 0 unless &amp;#039;Create&amp;#039; eq $self-&amp;amp;gt;TransactionObj-&amp;amp;gt;Type;&lt;br /&gt;
 &lt;br /&gt;
 my $CFName = &amp;#039;Initial Priority&amp;#039;;&lt;br /&gt;
 my $InitialPriority = $self-&amp;amp;gt;TicketObj-&amp;amp;gt;FirstCustomFieldValue( $CFName );&lt;br /&gt;
 &lt;br /&gt;
 return ($InitialPriority =~ /^(\d|[1-9]\d|100)$/) ? 1 : 0;&lt;br /&gt;
&lt;br /&gt;
=== Custom action preparation code ===&lt;br /&gt;
&lt;br /&gt;
 return 1;&lt;br /&gt;
&lt;br /&gt;
=== Custom action cleanup code ===&lt;br /&gt;
&lt;br /&gt;
 my $CFName = &amp;#039;Initial Priority&amp;#039;;&lt;br /&gt;
 my $InitialPriority = $self-&amp;amp;gt;TicketObj-&amp;amp;gt;FirstCustomFieldValue( $CFName );&lt;br /&gt;
 $self-&amp;amp;gt;TicketObj-&amp;amp;gt;SetPriority($InitialPriority);&lt;br /&gt;
 &lt;br /&gt;
 return 1;&lt;br /&gt;
&lt;br /&gt;
== Thank You ==&lt;br /&gt;
&lt;br /&gt;
Tig| and ruz on #rt at irc.perl.org&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>