Re: [rt-users] Search Assets by People gives "No assets matching search criteria found."

2016-11-02 Thread Tom Robinson
Sorry, forgot to mentions I'm using RT4 version 4.4.0


On 03/11/16 10:37, Tom Robinson wrote:
> Hi,
> 
> I'm trying to search my Assets database by People (Owner, Contact or Held By) 
> but always get "No
> assets matching search criteria found.".
> 
> I think there may be an issue with the created query as I'm seeing an error 
> in the logs. Anyone know
> what is causing this?
> 
> Kind regards,
> Tom
> 
> 
> ==> httpd/error_log <==
> [2409] [Wed Nov  2 23:36:26 2016] [warning]: Use of uninitialized value 
> $args{"GroupsAlias"} in hash
> element at /usr/local/rt4/lib/RT/SearchBuilder/Role/Roles.pm line 153.
> (/usr/local/rt4/lib/RT/SearchBuilder/Role/Roles.pm:153)
> 
> ==> messages <==
> Nov  3 10:36:26 marshal RT: [2409] Use of uninitialized value 
> $args{"GroupsAlias"} in hash element
> at /usr/local/rt4/lib/RT/SearchBuilder/Role/Roles.pm line 153.
> 
> ==> httpd/error_log <==
> [2409] [Wed Nov  2 23:36:26 2016] [warning]: Use of uninitialized value 
> $args{"ALIAS1"} in
> concatenation (.) or string at 
> /usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 1086.
> (/usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm:1086)
> 
> ==> messages <==
> Nov  3 10:36:26 marshal RT: [2409] Use of uninitialized value $args{"ALIAS1"} 
> in concatenation (.)
> or string at /usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 1086.
> 
> ==> httpd/error_log <==
> [2409] [Wed Nov  2 23:36:26 2016] [warning]: Use of uninitialized value in 
> string eq at
> /usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 1282.
> (/usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm:1282)
> 
> ==> messages <==
> Nov  3 10:36:26 marshal RT: [2409] Use of uninitialized value in string eq at
> /usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 1282.
> 
> ==> httpd/error_log <==
> [2409] [Wed Nov  2 23:36:26 2016] [warning]: DBD::mysql::st execute failed: 
> You have an error in
> your SQL syntax; check the manual that corresponds to your MySQL server 
> version for the right syntax
> to use near ') JOIN Groups Groups_1  ON ( Groups_1.Domain = 'RT::Asset-Role' 
> ) AND ( Groups_1' at
> line 1 at /usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 586.
> (/usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm:586)
> 
> ==> messages <==
> Nov  3 10:36:26 marshal RT: [2409] DBD::mysql::st execute failed: You have an 
> error in your SQL
> syntax; check the manual that corresponds to your MySQL server version for 
> the right syntax to use
> near ') JOIN Groups Groups_1  ON ( Groups_1.Domain = 'RT::Asset-Role' ) AND ( 
> Groups_1' at line 1 at
> /usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 586.
> 
> ==> httpd/error_log <==
> [2409] [Wed Nov  2 23:36:26 2016] [warning]: RT::Handle=HASH(0x8a09ae8) 
> couldn't execute the query
> 'SELECT COUNT(DISTINCT main.id) FROM Assets main JOIN CachedGroupMembers 
> CachedGroupMembers_3  ON (
> CachedGroupMembers_3.Disabled = '0' ) AND ( CachedGroupMembers_3.GroupId = 
> .id ) JOIN Groups
> Groups_1  ON ( Groups_1.Domain = 'RT::Asset-Role' ) AND ( Groups_1.Name = 
> 'Owner' ) AND (
> Groups_1.Instance = main.id ) JOIN CachedGroupMembers CachedGroupMembers_2  
> ON (
> CachedGroupMembers_2.Disabled = '0' ) AND ( CachedGroupMembers_2.GroupId = 
> Groups_1.id )  WHERE ( (
> CachedGroupMembers_2.MemberId = '22' )  OR  ( CachedGroupMembers_3.MemberId = 
> '0' ) ) AND
> (main.Catalog = '4') AND (main.Status != 'deleted') ' at
> /usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 599.
> DBIx::SearchBuilder::Handle::SimpleQuery(RT::Handle=HASH(0x8a09ae8), 
> "SELECT COUNT(DISTINCT
> main.id) FROM Assets main JOIN CachedGr"...) called at 
> /usr/local/share/perl5/DBIx/SearchBuilder.pm
> line 295
> DBIx::SearchBuilder::_DoCount(RT::Assets=HASH(0xa8943c0)) called at
> /usr/local/rt4/lib/RT/SearchBuilder.pm line 993
> RT::SearchBuilder::_DoCount(RT::Assets=HASH(0xa8943c0)) called at
> /usr/local/rt4/lib/RT/Assets.pm line 293
> RT::Assets::_DoCount(RT::Assets=HASH(0xa8943c0)) called at
> /usr/local/share/perl5/DBIx/SearchBuilder.pm line 1471
> DBIx::SearchBuilder::Count(RT::Assets=HASH(0xa8943c0)) called at
> /var/www/rt4/Asset/Search/index.html line 57
> HTML::Mason::Commands::__ANON__("!CF.{Asset Number}", "", "CF.{OS}", 
> "", "CF.{Express
> Service Code}", "", "Status", "", "CF.{Asset Number}", ...) called at
> /usr/local/share/perl5/HTML/Mason/Component.pm line 135
> 
> HTML::Mason::Component::run(HTML::Mason::Component::FileBased=HASH(0xa667330),
>  "!CF.{Asset
> Number}", "", "CF.{OS}", "", "CF.{Express Service Code}", "", "Status", "", 
> ...) called at
> /usr/local/share/perl5/HTML/Mason/Request.pm line 1302
> eval {...} called at /usr/local/share/perl5/HTML/Mason/Request.pm 
> line 1292
> HTML::Mason::Request::comp(undef, undef, undef, "!CF.{Asset Number}", 
> "", "CF.{OS}", "",
> "CF.{Express Service Code}", "", ...) called at 
> /usr/local/rt4/lib/RT/Interface/Web.pm line 696
> 

Re: [rt-users] Search Assets by People gives "No assets matching search criteria found."

2016-11-02 Thread Tom Robinson
Trying to sift through this SQL query, I've reformatted for a bit of clarity:

SELECT COUNT(DISTINCT main.id)
FROM Assets main
JOIN CachedGroupMembers CachedGroupMembers_3
ON ( CachedGroupMembers_3.Disabled = '0' )
AND ( CachedGroupMembers_3.GroupId = .id )
JOIN Groups Groups_1
ON ( Groups_1.Domain = 'RT::Asset-Role' )
AND ( Groups_1.Name = 'Owner' )
AND ( Groups_1.Instance = main.id )
JOIN CachedGroupMembers CachedGroupMembers_2
ON ( CachedGroupMembers_2.Disabled = '0' )
AND ( CachedGroupMembers_2.GroupId = Groups_1.id )
WHERE ( ( CachedGroupMembers_2.MemberId = '22' )
OR  ( CachedGroupMembers_3.MemberId = '0' ) )
AND (main.Catalog = '4')
AND (main.Status != 'deleted'
OR main.Status != 'deleted'
OR main.Status != 'deleted')


I notice in the first JOIN there appears to be an orphaned '.id'. Is there 
something missing there?

AND ( CachedGroupMembers_3.GroupId = .id )

To what should that .id be associated?

Also, how would one go about repairing this?

Kind regards,
Tom



On 03/11/16 10:37, Tom Robinson wrote:
> Hi,
> 
> I'm trying to search my Assets database by People (Owner, Contact or Held By) 
> but always get "No
> assets matching search criteria found.".
> 
> I think there may be an issue with the created query as I'm seeing an error 
> in the logs. Anyone know
> what is causing this?
> 
> Kind regards,
> Tom
> 
> 
> ==> httpd/error_log <==
> [2409] [Wed Nov  2 23:36:26 2016] [warning]: Use of uninitialized value 
> $args{"GroupsAlias"} in hash
> element at /usr/local/rt4/lib/RT/SearchBuilder/Role/Roles.pm line 153.
> (/usr/local/rt4/lib/RT/SearchBuilder/Role/Roles.pm:153)
> 
> ==> messages <==
> Nov  3 10:36:26 marshal RT: [2409] Use of uninitialized value 
> $args{"GroupsAlias"} in hash element
> at /usr/local/rt4/lib/RT/SearchBuilder/Role/Roles.pm line 153.
> 
> ==> httpd/error_log <==
> [2409] [Wed Nov  2 23:36:26 2016] [warning]: Use of uninitialized value 
> $args{"ALIAS1"} in
> concatenation (.) or string at 
> /usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 1086.
> (/usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm:1086)
> 
> ==> messages <==
> Nov  3 10:36:26 marshal RT: [2409] Use of uninitialized value $args{"ALIAS1"} 
> in concatenation (.)
> or string at /usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 1086.
> 
> ==> httpd/error_log <==
> [2409] [Wed Nov  2 23:36:26 2016] [warning]: Use of uninitialized value in 
> string eq at
> /usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 1282.
> (/usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm:1282)
> 
> ==> messages <==
> Nov  3 10:36:26 marshal RT: [2409] Use of uninitialized value in string eq at
> /usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 1282.
> 
> ==> httpd/error_log <==
> [2409] [Wed Nov  2 23:36:26 2016] [warning]: DBD::mysql::st execute failed: 
> You have an error in
> your SQL syntax; check the manual that corresponds to your MySQL server 
> version for the right syntax
> to use near ') JOIN Groups Groups_1  ON ( Groups_1.Domain = 'RT::Asset-Role' 
> ) AND ( Groups_1' at
> line 1 at /usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 586.
> (/usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm:586)
> 
> ==> messages <==
> Nov  3 10:36:26 marshal RT: [2409] DBD::mysql::st execute failed: You have an 
> error in your SQL
> syntax; check the manual that corresponds to your MySQL server version for 
> the right syntax to use
> near ') JOIN Groups Groups_1  ON ( Groups_1.Domain = 'RT::Asset-Role' ) AND ( 
> Groups_1' at line 1 at
> /usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 586.
> 
> ==> httpd/error_log <==
> [2409] [Wed Nov  2 23:36:26 2016] [warning]: RT::Handle=HASH(0x8a09ae8) 
> couldn't execute the query
> 'SELECT COUNT(DISTINCT main.id) FROM Assets main JOIN CachedGroupMembers 
> CachedGroupMembers_3  ON (
> CachedGroupMembers_3.Disabled = '0' ) AND ( CachedGroupMembers_3.GroupId = 
> .id ) JOIN Groups
> Groups_1  ON ( Groups_1.Domain = 'RT::Asset-Role' ) AND ( Groups_1.Name = 
> 'Owner' ) AND (
> Groups_1.Instance = main.id ) JOIN CachedGroupMembers CachedGroupMembers_2  
> ON (
> CachedGroupMembers_2.Disabled = '0' ) AND ( CachedGroupMembers_2.GroupId = 
> Groups_1.id )  WHERE ( (
> CachedGroupMembers_2.MemberId = '22' )  OR  ( CachedGroupMembers_3.MemberId = 
> '0' ) ) AND
> (main.Catalog = '4') AND (main.Status != 'deleted') ' at
> /usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 599.
> DBIx::SearchBuilder::Handle::SimpleQuery(RT::Handle=HASH(0x8a09ae8), 
> "SELECT COUNT(DISTINCT
> main.id) FROM Assets main JOIN CachedGr"...) called at 
> /usr/local/share/perl5/DBIx/SearchBuilder.pm
> line 295
> DBIx::SearchBuilder::_DoCount(RT::Assets=HASH(0xa8943c0)) called at
> /usr/local/rt4/lib/RT/SearchBuilder.pm line 993
> RT::SearchBuilder::_DoCount(RT::Assets=HASH(0xa8943c0)) called at
> 

[rt-users] Search Assets by People gives "No assets matching search criteria found."

2016-11-02 Thread Tom Robinson
Hi,

I'm trying to search my Assets database by People (Owner, Contact or Held By) 
but always get "No
assets matching search criteria found.".

I think there may be an issue with the created query as I'm seeing an error in 
the logs. Anyone know
what is causing this?

Kind regards,
Tom


==> httpd/error_log <==
[2409] [Wed Nov  2 23:36:26 2016] [warning]: Use of uninitialized value 
$args{"GroupsAlias"} in hash
element at /usr/local/rt4/lib/RT/SearchBuilder/Role/Roles.pm line 153.
(/usr/local/rt4/lib/RT/SearchBuilder/Role/Roles.pm:153)

==> messages <==
Nov  3 10:36:26 marshal RT: [2409] Use of uninitialized value 
$args{"GroupsAlias"} in hash element
at /usr/local/rt4/lib/RT/SearchBuilder/Role/Roles.pm line 153.

==> httpd/error_log <==
[2409] [Wed Nov  2 23:36:26 2016] [warning]: Use of uninitialized value 
$args{"ALIAS1"} in
concatenation (.) or string at 
/usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 1086.
(/usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm:1086)

==> messages <==
Nov  3 10:36:26 marshal RT: [2409] Use of uninitialized value $args{"ALIAS1"} 
in concatenation (.)
or string at /usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 1086.

==> httpd/error_log <==
[2409] [Wed Nov  2 23:36:26 2016] [warning]: Use of uninitialized value in 
string eq at
/usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 1282.
(/usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm:1282)

==> messages <==
Nov  3 10:36:26 marshal RT: [2409] Use of uninitialized value in string eq at
/usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 1282.

==> httpd/error_log <==
[2409] [Wed Nov  2 23:36:26 2016] [warning]: DBD::mysql::st execute failed: You 
have an error in
your SQL syntax; check the manual that corresponds to your MySQL server version 
for the right syntax
to use near ') JOIN Groups Groups_1  ON ( Groups_1.Domain = 'RT::Asset-Role' ) 
AND ( Groups_1' at
line 1 at /usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 586.
(/usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm:586)

==> messages <==
Nov  3 10:36:26 marshal RT: [2409] DBD::mysql::st execute failed: You have an 
error in your SQL
syntax; check the manual that corresponds to your MySQL server version for the 
right syntax to use
near ') JOIN Groups Groups_1  ON ( Groups_1.Domain = 'RT::Asset-Role' ) AND ( 
Groups_1' at line 1 at
/usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 586.

==> httpd/error_log <==
[2409] [Wed Nov  2 23:36:26 2016] [warning]: RT::Handle=HASH(0x8a09ae8) 
couldn't execute the query
'SELECT COUNT(DISTINCT main.id) FROM Assets main JOIN CachedGroupMembers 
CachedGroupMembers_3  ON (
CachedGroupMembers_3.Disabled = '0' ) AND ( CachedGroupMembers_3.GroupId = .id 
) JOIN Groups
Groups_1  ON ( Groups_1.Domain = 'RT::Asset-Role' ) AND ( Groups_1.Name = 
'Owner' ) AND (
Groups_1.Instance = main.id ) JOIN CachedGroupMembers CachedGroupMembers_2  ON (
CachedGroupMembers_2.Disabled = '0' ) AND ( CachedGroupMembers_2.GroupId = 
Groups_1.id )  WHERE ( (
CachedGroupMembers_2.MemberId = '22' )  OR  ( CachedGroupMembers_3.MemberId = 
'0' ) ) AND
(main.Catalog = '4') AND (main.Status != 'deleted') ' at
/usr/local/share/perl5/DBIx/SearchBuilder/Handle.pm line 599.
DBIx::SearchBuilder::Handle::SimpleQuery(RT::Handle=HASH(0x8a09ae8), 
"SELECT COUNT(DISTINCT
main.id) FROM Assets main JOIN CachedGr"...) called at 
/usr/local/share/perl5/DBIx/SearchBuilder.pm
line 295
DBIx::SearchBuilder::_DoCount(RT::Assets=HASH(0xa8943c0)) called at
/usr/local/rt4/lib/RT/SearchBuilder.pm line 993
RT::SearchBuilder::_DoCount(RT::Assets=HASH(0xa8943c0)) called at
/usr/local/rt4/lib/RT/Assets.pm line 293
RT::Assets::_DoCount(RT::Assets=HASH(0xa8943c0)) called at
/usr/local/share/perl5/DBIx/SearchBuilder.pm line 1471
DBIx::SearchBuilder::Count(RT::Assets=HASH(0xa8943c0)) called at
/var/www/rt4/Asset/Search/index.html line 57
HTML::Mason::Commands::__ANON__("!CF.{Asset Number}", "", "CF.{OS}", 
"", "CF.{Express
Service Code}", "", "Status", "", "CF.{Asset Number}", ...) called at
/usr/local/share/perl5/HTML/Mason/Component.pm line 135

HTML::Mason::Component::run(HTML::Mason::Component::FileBased=HASH(0xa667330), 
"!CF.{Asset
Number}", "", "CF.{OS}", "", "CF.{Express Service Code}", "", "Status", "", 
...) called at
/usr/local/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} called at /usr/local/share/perl5/HTML/Mason/Request.pm line 
1292
HTML::Mason::Request::comp(undef, undef, undef, "!CF.{Asset Number}", 
"", "CF.{OS}", "",
"CF.{Express Service Code}", "", ...) called at 
/usr/local/rt4/lib/RT/Interface/Web.pm line 696
RT::Interface::Web::ShowRequestedPage(HASH(0xa88feb8)) called at
/usr/local/rt4/lib/RT/Interface/Web.pm line 375
RT::Interface::Web::HandleRequest(HASH(0xa88feb8)) called at 
/var/www/rt4/autohandler line 53
HTML::Mason::Commands::__ANON__("!CF.{Asset Number}", "", "CF.{OS}", 
"", "CF.{Express
Service Code}", "", 

[rt-users] how to display extension fields in ticket overview

2016-11-02 Thread Piet Honkoop
Hi all,


I've installed the recurrence extension.

Now I would like to display some of those fields in a query result.
However,  I can't seem to find how I can access those fields.

I've looked through the Attributes docs but to no avail.

Can anybody shed some light on this please?


Thanks,

Piet


-- 
Dit bericht is gescanned op virussen en andere gevaarlijke
inhoud door MailScanner en lijkt schoon te zijn.

-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Los Angeles - Q1 2017


Re: [rt-users] Enable devel-mode on existing RT instance?

2016-11-02 Thread Landon Stewart
On Nov 2, 2016, at 10:45 AM, Alex Hall 
> wrote:

Hi all,
I'm getting an error in an overlay, but nothing is logged. I know I can use
./configure --devel-mode
to help, though whether that will show additional information for errors like 
this I'm not sure. Either way, how do I enable it on an existing installation 
of RT? Do I go back to the unpacked source and re-run the configure script, or 
is there more to it? Thanks.

Update your RT_SiteConfig.pm with the following and then restart apache:
Set($DevelMode, '1');

From https://docs.bestpractical.com/rt/4.4.1/RT_Config.html#Development-options

$DevelMode

RT comes with a "Development mode" setting. This setting, as a convenience for 
developers, turns on several of development options that you most likely don't 
want in production:

  *   Disables CSS and JS minification and concatenation. Both CSS and JS will 
be instead be served as a number of individual smaller files, unchanged from 
how they are stored on disk.
  *   Uses Module::Refresh to 
reload changed Perl modules on each request.
  *   Turns off Mason's static_source directive; this causes Mason to reload 
template files which have been modified on disk.
  *   Turns on Mason's HTML error_format; this renders compilation errors to 
the browser, along with a full stack trace. It is possible for stack traces to 
reveal sensitive information such as passwords or ticket content.
  *   Turns off caching of callbacks; this enables additional callbacks to be 
added while the server is running.

--
Landon Stewart
Lead Analyst - Abuse and Security Management
INTERNAP ®
 lstew...@internap.com
 www.internap.com

-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Los Angeles - Q1 2017

[rt-users] External authentication and RT's REST API

2016-11-02 Thread Anthony Nguyen-Duong
Hello rt-users,


So, I've implemented a Google Sign In flow into Request Tracker with 
WebRemoteUserAuth enabled and an Apache module called mod_auth_openidc. Now, 
I'd like to access RT's REST API with an account authenticated through the 
external flow. Since these accounts don't have a standard login flow , you 
can't just do REST/1.0/?something=something=USERNAME=PASSWORD right? 
So, I was wondering how to let those kinds of users access the REST API. These 
users don't necessarily have an RT password - eg autocreated.


Thanks,

Anthony
-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Los Angeles - Q1 2017

Re: [rt-users] Finding queue priority in script?

2016-11-02 Thread Alex Hall
Thanks, I found it. I wonder if the lack of documentation is because this
is an option under DefaultValue()? It's not wrapped to make its own
function, so maybe the docs never picked it up under what I would think of
as an expected name?

On Wed, Nov 2, 2016 at 5:18 AM, Martin Wheldon <
martin.whel...@greenhills-it.co.uk> wrote:

> Sorry that should be DefaultValue, not SetDefaultValue.
> Should read the question more closely :(
>
> Martin
>
>
> On 2016-11-02 09:10, Martin Wheldon wrote:
>
>> Hi Alex,
>>
>> The file below contains a example of how to set the default values for a
>> queue.
>>
>> share/html/Admin/Queues/DefaultValues.html
>>
>> Looks like the SetDefaultValue method for Queues isn't documented or a
>> least I haven't found where, which seems odd
>> as I've always found RT to be very well documented.
>>
>> Best Regards
>>
>> Martin
>>
>> On 2016-11-01 21:50, Alex Hall wrote:
>>
>>> Hi all,
>>> It hit me the other day that instead of trying to move the priority
>>> field out of the details view, I could simply make a custom field for
>>> priority, then set it in a script on ticket creation.
>>>
>>> I see in the docs how to set a ticket's priority, but is there a way
>>> to get a queue's priority values (initial and maximum)? All our queues
>>> will likely share priority settings, so I'm not too worried about
>>> this, but I would prefer to base things off a given queue's settings
>>> if possible. The docs for Queue objects mention nothing about
>>> priority, which seems like an odd ommition. Thanks for any
>>> suggestions.
>>>
>>> --
>>>
>>> Alex Hall
>>> Automatic Distributors, IT department
>>> ah...@autodist.com
>>>
>>> -
>>> RT 4.4 and RTIR training sessions, and a new workshop day!
>>> https://bestpractical.com/training
>>> * Los Angeles - Q1 2017
>>>
>> -
>> RT 4.4 and RTIR training sessions, and a new workshop day!
>> https://bestpractical.com/training
>> * Los Angeles - Q1 2017
>>
> -
> RT 4.4 and RTIR training sessions, and a new workshop day!
> https://bestpractical.com/training
> * Los Angeles - Q1 2017
>



-- 
Alex Hall
Automatic Distributors, IT department
ah...@autodist.com
-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Los Angeles - Q1 2017

[rt-users] Enable devel-mode on existing RT instance?

2016-11-02 Thread Alex Hall
Hi all,
I'm getting an error in an overlay, but nothing is logged. I know I can use
./configure --devel-mode
to help, though whether that will show additional information for errors
like this I'm not sure. Either way, how do I enable it on an existing
installation of RT? Do I go back to the unpacked source and re-run the
configure script, or is there more to it? Thanks.

-- 
Alex Hall
Automatic Distributors, IT department
ah...@autodist.com
-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Los Angeles - Q1 2017

Re: [rt-users] Finding queue priority in script?

2016-11-02 Thread Martin Wheldon

Sorry that should be DefaultValue, not SetDefaultValue.
Should read the question more closely :(

Martin

On 2016-11-02 09:10, Martin Wheldon wrote:

Hi Alex,

The file below contains a example of how to set the default values for 
a queue.


share/html/Admin/Queues/DefaultValues.html

Looks like the SetDefaultValue method for Queues isn't documented or a
least I haven't found where, which seems odd
as I've always found RT to be very well documented.

Best Regards

Martin

On 2016-11-01 21:50, Alex Hall wrote:

Hi all,
It hit me the other day that instead of trying to move the priority
field out of the details view, I could simply make a custom field for
priority, then set it in a script on ticket creation.

I see in the docs how to set a ticket's priority, but is there a way
to get a queue's priority values (initial and maximum)? All our queues
will likely share priority settings, so I'm not too worried about
this, but I would prefer to base things off a given queue's settings
if possible. The docs for Queue objects mention nothing about
priority, which seems like an odd ommition. Thanks for any
suggestions.

--

Alex Hall
Automatic Distributors, IT department
ah...@autodist.com

-
RT 4.4 and RTIR training sessions, and a new workshop day!
https://bestpractical.com/training
* Los Angeles - Q1 2017

-
RT 4.4 and RTIR training sessions, and a new workshop day!
https://bestpractical.com/training
* Los Angeles - Q1 2017

-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Los Angeles - Q1 2017


Re: [rt-users] Finding queue priority in script?

2016-11-02 Thread Martin Wheldon

Hi Alex,

The file below contains a example of how to set the default values for a 
queue.


share/html/Admin/Queues/DefaultValues.html

Looks like the SetDefaultValue method for Queues isn't documented or a 
least I haven't found where, which seems odd

as I've always found RT to be very well documented.

Best Regards

Martin

On 2016-11-01 21:50, Alex Hall wrote:

Hi all,
It hit me the other day that instead of trying to move the priority
field out of the details view, I could simply make a custom field for
priority, then set it in a script on ticket creation.

I see in the docs how to set a ticket's priority, but is there a way
to get a queue's priority values (initial and maximum)? All our queues
will likely share priority settings, so I'm not too worried about
this, but I would prefer to base things off a given queue's settings
if possible. The docs for Queue objects mention nothing about
priority, which seems like an odd ommition. Thanks for any
suggestions.

--

Alex Hall
Automatic Distributors, IT department
ah...@autodist.com

-
RT 4.4 and RTIR training sessions, and a new workshop day!
https://bestpractical.com/training
* Los Angeles - Q1 2017

-
RT 4.4 and RTIR training sessions, and a new workshop day! 
https://bestpractical.com/training
* Los Angeles - Q1 2017