<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://greggsmith.net/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gius3ppe</id>
		<title>SDU - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://greggsmith.net/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gius3ppe"/>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Special:Contributions/Gius3ppe"/>
		<updated>2026-07-29T17:53:05Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.26.1</generator>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Require_Assignee_to_be_a_Member_of_the_selected_Group&amp;diff=4271</id>
		<title>Require Assignee to be a Member of the selected Group</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Require_Assignee_to_be_a_Member_of_the_selected_Group&amp;diff=4271"/>
				<updated>2010-12-10T05:09:06Z</updated>
		
		<summary type="html">&lt;p&gt;Gius3ppe: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I came across this customization to require that the Assignee be a member of the selected Group on a ticket.  It works fine in 12.5 but am pretty sure it was originally written for 11.2 so should work in earlier versions:&lt;br /&gt;
&lt;br /&gt;
'''MOD:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// verify Assignee is a member of the selected Group&lt;br /&gt;
&lt;br /&gt;
MODIFY cr PRE_VALIDATE zcr_assignee_validate(assignee) 140 FILTER ( EVENT (&amp;quot;INSERT UPDATE&amp;quot;) );&lt;br /&gt;
&lt;br /&gt;
'''SPL:'''&lt;br /&gt;
&lt;br /&gt;
// verify Assignee is a member of the selected Group&lt;br /&gt;
&lt;br /&gt;
cr::zcr_assignee_validate(...)&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
string where_clause, zmsg;&lt;br /&gt;
&lt;br /&gt;
if (!is_null(assignee) &amp;amp;&amp;amp; !is_null(group))&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
where_clause = format(&amp;quot;group = U'%s' and member = U'%s'&amp;quot;, group, assignee);&lt;br /&gt;
&lt;br /&gt;
send_wait(0, top_object(), &amp;quot;call_attr&amp;quot;, &amp;quot;grpmem&amp;quot;, &amp;quot;sync_fetch&amp;quot;, &amp;quot;RLIST_STATIC&amp;quot;,where_clause, -1, 0);&lt;br /&gt;
&lt;br /&gt;
if ( msg[1] == 0 )&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
zmsg=format(&amp;quot; Please either change the Group or select an Assignee who is a member of Group %s&amp;quot;, group.last_name);&lt;br /&gt;
&lt;br /&gt;
set_error(1);&lt;br /&gt;
&lt;br /&gt;
set_return_data(zmsg);&lt;br /&gt;
&lt;br /&gt;
return;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I tested this out in r12.0 and it worked perfectly! I have been trying to develop this exact thing for a while now. Thanks for the post!!! - Giuseppe&lt;/div&gt;</summary>
		<author><name>Gius3ppe</name></author>	</entry>

	</feed>