Owner Query - Custom

Hello!

When I trying to create a ticket on RT 4.09, I’d like to select just the RT
User’s of Owner field on the basics table in the right side.

I’d like to select only the RT User’s on my Owner Query! Is it Possible? How
Can I do this? I can’t see the Watcher’s!

Owner: Nobody in particular RT User 1 Watcher 1

"

"

Thanks,

Marcelo Calado.

Hi Marcelo,On Tue, Nov 10, 2015 at 8:42 AM, Marcelo Calado | TBS TAX Services mcalado@tbstaxservices.com wrote:

Hello!

When I trying to create a ticket on RT 4.09, I’d like to select just the RT
User’s of Owner field on the basics table in the right side.

I’d like to select only the RT User’s on my Owner Query! Is it Possible? How
Can I do this? I can’t see the Watcher’s!

I don’t quite understand your question. Do you think you could
rephrase it or write it out differently?

Cheers,

-m

Hi,

I want to change (if possible) settings, under Permissions , modify the permissions that are allowed or denied for only the RT User’s to be Owner’s when I create a new ticket or modify?

The Watcher’s can’t be Owner!

Is it possible?

Thank you!

Marcelo Calado.From: Matt Zagrabelny [mailto:mzagrabe@d.umn.edu]
Sent: Tuesday, November 10, 2015 4:38 PM
To: Marcelo Calado | TBS TAX Services mcalado@tbstaxservices.com
Cc: rt-users rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Owner Query - Custom

Hi Marcelo,

Hi,

I want to change (if possible) settings, under Permissions , modify the permissions that are allowed or denied for only the RT User’s to be Owner’s when I create a new ticket or modify?

The Watcher’s can’t be Owner!

Is it possible?

You can hack on:

share/html/Helpers/Autocomplete/Owners

I see there is only one callback in there. You could add another
callback to the mason component and then have your code utilize that
callback. BPS is usually pretty accepting to new callbacks - send a
patch their way to (hopefully) get it included in upstream.

-m

Thanks Matt!

I’ve been working on it, But I have no idea how to set up this!

I would like to use the something like “WHERE” clause to filter my results from Users (/html/helpers/Autocomplete/Owner) to show me only the Users who can be Owner.

I’d like to return only Users checked “Let this user access RT” and “Let this user be granted rights (Privileged)” on Create/Modify User page.

I’ve tried changing /share/html/Ticket/Create.html - Carbon60: Managed Cloud Services , but no lock!

I also tried changing line 72 in share/html/Ticket/Create.html from:
“…, Default => $ARGS{Owner}||$RT::Nobody->Id, …”
to each of these:
“…, Default => $ARGS{Owner}||12, 13,14 …” by Id…did not function as expected…:frowning:

How to add a new arguments when the function was called?

At this point I can add my condition?

(/html/helpers/Autocomplete/Owner)

<%ARGS>
$return => ‘Name’
$limit => undef
$term => undef
$max => 10
</%ARGS>

Thanks,

Marcelo Calado.-----Original Message-----
From: Matt Zagrabelny [mailto:mzagrabe@d.umn.edu]
Sent: Thursday, November 12, 2015 10:09 AM
To: Marcelo Calado | TBS TAX Services mcalado@tbstaxservices.com
Cc: rt-users rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Owner Query - Custom

On Wed, Nov 11, 2015 at 10:21 AM, Marcelo Calado | TBS TAX Services mcalado@tbstaxservices.com wrote:

Hi,

I want to change (if possible) settings, under Permissions , modify the permissions that are allowed or denied for only the RT User’s to be Owner’s when I create a new ticket or modify?

The Watcher’s can’t be Owner!

Is it possible?

You can hack on:

share/html/Helpers/Autocomplete/Owners

I see there is only one callback in there. You could add another callback to the mason component and then have your code utilize that callback. BPS is usually pretty accepting to new callbacks - send a patch their way to (hopefully) get it included in upstream.

-m

Hi Marcelo,On Fri, Nov 13, 2015 at 10:17 AM, Marcelo Calado | TBS TAX Services mcalado@tbstaxservices.com wrote:

Thanks Matt!

I’ve been working on it, But I have no idea how to set up this!

I would like to use the something like “WHERE” clause to filter my results from Users (/html/helpers/Autocomplete/Owner) to show me only the Users who can be Owner.

I haven’t looked into that Mason component, so I don’t have a good
answer for you. Sorry.

RT uses an ORM called SearchBuilder (SB) - BPS wrote it. Using SB is
how you will filter your query results down - like using a where
clause. SB calls it Limit.

However, Limit may or may not be what you want. It is tough to say
without looking at the code more closely, which I don’t have time for
right now. :frowning:

Best of luck!

-m