Re: [rt-users] REST API, AUTOMATION and Recipes.

2016-10-26 Thread Keith Creasy
Hi Reza.

Nothing all that complicated but I did write an interface using Angular that 
compiles some statistical information on RT tickets and children. It creates a 
nice report on the progress toward milestones. Things like estimated time, time 
worked, time remaining, percent complete, and a color-coded status. It gives 
totals for each “epic” and a total for all work in progress, work completed, 
and work that has not yet begun.

I’m sure I could do a lot more but coding all this really isn’t “my job” and so 
time is limited.


Good luck.

Keith


Keith Creasy, Programmer and Technical Lead
American Printing House f/t Blind
Phone: 502.895.2405
Skype: keith537

From: rt-users [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of 
Reza
Sent: Wednesday, October 26, 2016 3:17 AM
To: rt-users
Subject: [rt-users] REST API, AUTOMATION and Recipes.


Greetings Community:

Past 3:00 AM EST here in Toronto and this learning exercise is just too darn 
addictive!

I've already been digging deep inside the API documentations of RT, to be more 
specific the REST API.

The contributors and developers of RT are simply pure ingenious.  The REST API 
is allowing any Joe like me to come up with a beautifully designed web 
interface and communicate with RT to do almost anything (if not all).  I've 
already started writing code to integrate with bash scripts, php, simple CURL, 
etc., as the initial input by web-form, or telephone touch pad.  I'm only 
beginning to imagine the potential of a phone system integration of a call 
centre into RT.

Most of us here are systems admins, system analysts and coders.  Just 
curious...  how many of you folks here in this community have actually written 
your own apps to integrate with RT via the REST API?

Thanks!
Reza.

[Superbly pumped to learn more.  Cheers!]


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

Re: [rt-users] Using Markdown in RT?

2016-09-12 Thread Keith Creasy
I agree that this would be a wonderful extension. I use markdown a lot with 
other web-based apps.


Keith Creasy, Programmer and Technical Lead
American Printing House f/t Blind
Phone: 502.895.2405
Skype: keith537

From: rt-users [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of 
Barton Chittenden
Sent: Monday, September 12, 2016 8:38 AM
To: Alex Hall
Cc: rt-users
Subject: Re: [rt-users] Using Markdown in RT?

This is definitely a plugin that I would use... a *lot*.

On Fri, Sep 9, 2016 at 11:29 AM, Alex Hall 
<ah...@autodist.com<mailto:ah...@autodist.com>> wrote:
As long as I know it's not built in and buried in settings somewhere, I won't 
pursue it. I'll wait until things are working and I'm more comfortable before 
trying to make a plugin. :) Thanks.

On Fri, Sep 9, 2016 at 11:13 AM, Matt Zagrabelny 
<mzagr...@d.umn.edu<mailto:mzagr...@d.umn.edu>> wrote:
On Fri, Sep 9, 2016 at 9:43 AM, Alex Hall 
<ah...@autodist.com<mailto:ah...@autodist.com>> wrote:
> I've switched my own account to use that simple editor, but does it already
> handle Markdown syntax? If not, is there a plugin or setting to enable such
> support?
>

It does not natively handle MD. A quick google did not yield any MD
extensions for RT.

It looks like there are JS MD editors - though I am not sure how much
effort it would take to make an extension that uses them. Perhaps just
a jquery call to change the textarea.

-m



--
Alex Hall
Automatic Distributors, IT department
ah...@autodist.com<mailto:ah...@autodist.com>

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

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

[rt-users] FW: Query for custom fields using 'NOT LIKE' is no longer working

2016-09-07 Thread Keith Creasy
Apologies. I keep forgetting that replies to this list go to the sender and not 
to the list…


From: Keith Creasy
Sent: Wednesday, September 7, 2016 5:55 PM
To: 'Hien Ly' <hien.thai...@gmail.com>
Subject: RE: [rt-users] Query for custom fields using 'NOT LIKE' is no longer 
working

Hi. I think I now know the problem but haven’t confirmed it yet.


We just created a new queue for requests submitted by beta testors. It’s sort 
of an approval queue though we are not using the built-in __approval queue, 
it’s just a regular queue. A “Type” custom field was created in it with 
different values from the existing Type field. I suspect that RT is matching 
the first field with the name CF.{Type} it finds. The reason is that if you use 
the field id CF.{11} it works.

CF.{11} NOT LIKE ‘Epic’


If this is a solution I’ll let you know but it is equally strange that “LIKE” 
works while “NOT LIKE” does not.

Is this a bug in RT?


From: Hien Ly [mailto:hien.thai...@gmail.com]
Sent: Wednesday, September 7, 2016 5:24 PM
To: Keith Creasy <kcre...@aph.org<mailto:kcre...@aph.org>>
Subject: Re: [rt-users] Query for custom fields using 'NOT LIKE' is no longer 
working


How about NOT (CF.{Type} LIKE 'Epic') ?
On Sep 7, 2016 7:07 AM, "Keith Creasy" 
<kcre...@aph.org<mailto:kcre...@aph.org>> wrote:
Hi everyone.


We are using RT 4.2.7. I think this used to work but now it isn’t. In a query 
like this:

Queue = 'Nimas' AND Priority > 49 AND (  Status = 'new' OR Status = 'open' OR 
Status = 'development' ) AND Due > 0 AND CF.{Type} NOT LIKE ‘Epic’


The “NOT LIKE” operator doesn’t work. I’ve tried it using the Query Builder and 
using Advanced. The “LIKE” operator does work. Does anyone have an idea for 
solving this?

Thanks.

Keith Creasy, Programmer and Technical Lead
American Printing House f/t Blind
Phone: 502.895.2405
Skype: keith537


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

[rt-users] Query for custom fields using 'NOT LIKE' is no longer working

2016-09-07 Thread Keith Creasy
Hi everyone.


We are using RT 4.2.7. I think this used to work but now it isn't. In a query 
like this:

Queue = 'Nimas' AND Priority > 49 AND (  Status = 'new' OR Status = 'open' OR 
Status = 'development' ) AND Due > 0 AND CF.{Type} NOT LIKE 'Epic'


The "NOT LIKE" operator doesn't work. I've tried it using the Query Builder and 
using Advanced. The "LIKE" operator does work. Does anyone have an idea for 
solving this?

Thanks.

Keith Creasy, Programmer and Technical Lead
American Printing House f/t Blind
Phone: 502.895.2405
Skype: keith537

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

[rt-users] Need to "edit" a ticket via javascript and Angular.js $http.post

2016-05-16 Thread Keith Creasy
Hello all.


I'm using RT 4.2.7.


I have my RT progress page working. I solved my previous problem of RT altering 
attribute values that were needed by Angular by redirecting so that the actual 
report page lives outside RT. One can now to to the URL, log into RT, and view 
the project progress report.


Now I want to update RT with some calculated values on certain, what we are 
calling "epic", tickets. The documentation is pretty vague and so far I haven't 
found just the right way to make it work. Does anyone have a good, working 
example of a call to edit an RT ticket via Javascript, or even better 
Angular.js? Here is my function as it currently stands. There is a lot of 
variable declarations that I probably don't need but was trying to rule out 
what might have been my own mistakes.


// We want to set the actual values in RT to match our calclulations on Epics.
this.setTimeData = function ( row) {
var number = row.id;
var url = baseURL+"ticket/"+row.id+"/edit";
var timeWorked = row.TimeWorked*60;
var timeLeft = row.TimeLeft*60;
var data = [];
data['content'] = 'TimeWorked: '+timeWorked+'\nTimeLeft: '+timeLeft;
if( number == 3683) {
console.log( url+": "+data.content+".");
$http.post( url, data)
.then( function (response) {
console.log(response.data);
})
.catch( function (e) {
console.log(e);
});
}
}



The response I get just has the ticket details in the response data... No 
errors but the ticket doesn't get updated either.


Thank yu for any assistance.


Keith


-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Bare bones javascript that failes using Angular.js data-ng-repeat...

2016-05-13 Thread Keith Creasy
Hello all.


Still no success with this. I have narrowed it down to RT for some reason 
taking the space characters out of “record in development”, and similar 
expressions, in elements such this that use angular…



Gets changed to (where the ? is some unknown char)



Angular rejects this, of course, as a syntax error in the expression.

Is there anywhere in the RT code that might alter the text in an attribute such 
as this? It sure seems to be doing it.

I would appreciate any help with this, or some alternative to avoid the problem.

Thanks.

Keith

From: rt-users [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of 
Keith Creasy
Sent: Thursday, May 12, 2016 2:40 PM
To: rt-users@lists.bestpractical.com
Cc: Brandon Roller
Subject: [rt-users] Bare bones javascript that failes using Angular.js 
data-ng-repeat...

Hello all.


I am getting a different error now and have a bare-bones javascript and html 
document that works outside of RT but not when opened from the rt URL. It looks 
like RT is making some changes to the syntax of the data-ng-repeat attribute.

You can look at them yourself…

http://tech.aph.org/~keith/ngTest.html - this one works
http://tech.aph.org/rt/ngTest.html - this one does not.


Here is the HTML…

http://www.w3.org/TR/html4/loose.dtd;>

  
Angular Test in RT
https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js&quot</a>; 
type="text/javascript">
https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js&quot</a>; 
type="text/javascript">
https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js&quot</a>; 
type="text/javascript">
https://tech.aph.org/~keith/ngTest.js&quot</a>; 
type="text/javascript">
  


Angular Test in RT
  

People/h2>


Last
First




  {{record.lastName}}
  {{record.firstName}}








The javascript in ngTest.js…

   var mainApp = angular.module('mainApp', []);

mainApp.controller('mainController', function($scope) {

var people = [{firstName: 'Tom', lastName: 'Jones'},
{firstName: 'Linda', lastName: 'Smith'},
{firstName: 'Scott', lastName: 'Moore'}];

$scope.names = [];

$.each( people, function(i) {
$scope.names.push(people[i]);
});


And finally the error I get when I try to open it from the RT URL…

Error: [ngRepeat:iexp]
http://errors.angularjs.org/1.4.8/ngRepeat/iexp?p0=record%EF%BF%BDin%EF%BF%BDnames%20%7C;
 rderBy%3A%20'lastName'
G/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:6:416
Cehttps://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:279:13
Z@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:65:273<mailto:Z@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:65:273>
O@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:55:235<mailto:O@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:55:235>
O@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:55:365<mailto:O@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:55:365>
O@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:55:365<mailto:O@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:55:365>
O@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:55:365<mailto:O@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:55:365>
O@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:55:365<mailto:O@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:55:365>
K@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:53:230<mailto:K@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:53:230>
yc/c/https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:20:99
lf/this.$gethttps://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:133:309
lf/this.$gethttps://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:134:12
yc/c/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:20:57
e@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:39:392<mailto:e@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:39:392>
yc/c@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:19:480<mailto:yc/c@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:19:480>
yc@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:20:274<mailto:yc@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:20:274>
Zd@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:19:83&l

[rt-users] Bare bones javascript that failes using Angular.js data-ng-repeat...

2016-05-12 Thread Keith Creasy
Hello all.


I am getting a different error now and have a bare-bones javascript and html 
document that works outside of RT but not when opened from the rt URL. It looks 
like RT is making some changes to the syntax of the data-ng-repeat attribute.

You can look at them yourself…

http://tech.aph.org/~keith/ngTest.html - this one works
http://tech.aph.org/rt/ngTest.html - this one does not.


Here is the HTML…

http://www.w3.org/TR/html4/loose.dtd;>

  
Angular Test in RT
https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"; 
type="text/javascript">
https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"; 
type="text/javascript">
https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"; 
type="text/javascript">
https://tech.aph.org/~keith/ngTest.js"; 
type="text/javascript">
  


Angular Test in RT
  

People/h2>


Last
First




  {{record.lastName}}
  {{record.firstName}}








The javascript in ngTest.js…

   var mainApp = angular.module('mainApp', []);

mainApp.controller('mainController', function($scope) {

var people = [{firstName: 'Tom', lastName: 'Jones'},
{firstName: 'Linda', lastName: 'Smith'},
{firstName: 'Scott', lastName: 'Moore'}];

$scope.names = [];

$.each( people, function(i) {
$scope.names.push(people[i]);
});


And finally the error I get when I try to open it from the RT URL…

Error: [ngRepeat:iexp]
http://errors.angularjs.org/1.4.8/ngRepeat/iexp?p0=record%EF%BF%BDin%EF%BF%BDnames%20%7C;
 rderBy%3A%20'lastName'
G/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:6:416
Cehttps://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:279:13
Z@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:65:273
O@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:55:235
O@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:55:365
O@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:55:365
O@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:55:365
O@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:55:365
K@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:53:230
yc/c/https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:20:99
lf/this.$gethttps://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:133:309
lf/this.$gethttps://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:134:12
yc/c/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:20:57
e@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:39:392
yc/c@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:19:480
yc@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:20:274
Zd@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:19:83
@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:294:192
b@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:175:62
If@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:35:365
Hf/d@https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:35:314
angular.min.js:107:210

});
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


Re: [rt-users] Angular web page breaks when I try to access it from the local/html directory of RT 4.4.2

2016-05-11 Thread Keith Creasy
Hi. I'm still stumped. Here is a function that fails. It's in the angular 
controller. It works if the page that includes it is outside RT but failes when 
within RT... I commented out everything but the essential code.

function getTableData(data) {
console.log(data);
//  var tickets = rt.parseForNumbers(data);
var tickets = {1: 'ticket/1'};
// line 174...
angular.forEach (tickets, function (value, key) {
console.log(key+", "+value);
});
}


The error is-

SyntaxError: illegal character
rt-progress.js:174:25

It is the comma ',' in line 174.

Does anyone have any clues?

Thanks.

Keith


-Original Message-
From: rt-users [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of 
Keith Creasy
Sent: Wednesday, May 11, 2016 4:30 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Angular web page breaks when I try to access it from 
the local/html directory of RT 4.4.2

Thanks Shawn. It is good to know at least that this could work. My problem is 
that the error I'm getting in the web-development console is pretty useless. It 
may be difficult to figure out just what's going wrong when I try to access it 
from the local/html directory in RT.


I am including the script like this, 

Re: [rt-users] Angular web page breaks when I try to access it from the local/html directory of RT 4.4.2

2016-05-11 Thread Keith Creasy
Thanks Shawn. It is good to know at least that this could work. My problem is 
that the error I'm getting in the web-development console is pretty useless. It 
may be difficult to figure out just what's going wrong when I try to access it 
from the local/html directory in RT.


I am including the script like this, 

[rt-users] Angular web page breaks when I try to access it from the local/html directory of RT 4.4.2

2016-05-11 Thread Keith Creasy
Hello.

I have a page that works if I am logged into rT and run it from my local 
public_html directory. It uses RT 4.4.2, the REST API and Angular.js.

https:///~keith/rt-progress.html

If I try to run it using a URI like

https:///rt/rt-progress.html

I get an error, "Illegal character in rt-progress.js at line 173:16. The 
character there is just a comma and belongs there. In any case it's exactly the 
same script just accessed from a different html directory.


We have a similar script, that doesn't use angular.js, that works.

Any idea if RT is simply not compatible with Angular.js markup?

Is there any hope of updating RT to be more REST and json compliant as well as 
making it so it doesn't try to mangle scripts?

Keith

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016


[rt-users] Custom action triggered on adding time worked

2016-02-23 Thread Keith Creasy
Hello everyone.


My thanks again to everyone that responded to my earlier inquiry.

We now have a web page that uses the REST API to create a colored progress 
chart. We are using custom actions to update "TimeLeft" on certain actions, for 
example if a ticket is resolved we set TimeLeft to 0.

We need to trigger an action whenever anyone adds time worked, via a 
correspondence, but have not figured out what action to trigger this. The 
correspondence triggers but before the time is added.


Does anyone know what transaction we can trigger on to make this work?


Thanks.

Keith

-
RT 4.4 and RTIR Training Sessions 
(http://bestpractical.com/services/training.html)
* Hamburg Germany - March 14 & 15, 2016
* Washington DC - May 23 & 24, 2016

Re: [rt-users] Customizing the column mapRE: Time left... RE: Display time worked in search results in hours only

2016-02-02 Thread Keith Creasy
Thanks, Jim, for enumerating options. I'm not sure where we'll go with this 
yet. Just for the time being I think we are going to use the REST API to 
generate the specific report we need and then work on making RT behave more as 
we think it should.


I still think it makes no sense at all to convert fields that are entered in 
minutes into calendar units - years, months, days. It just doesn't seem useful. 
There probably was some logic behind it.


Keith

-Original Message-
From: Jim Brandt [mailto:jbra...@bestpractical.com] 
Sent: Tuesday, February 02, 2016 1:21 PM
To: Matt Zagrabelny; Keith Creasy
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Customizing the column mapRE: Time left... RE: Display 
time worked in search results in hours only

If you modify the code in place, your changes will get overwritten when you 
upgrade (even a minor upgrade). In general, options for changes are:

1) Change in place. Will get squashed on upgrade, so keep a copy somewhere and 
make a note to reapply after upgrades.

2) Create a local directory in your rt directory and override (duplicate the 
directory structure and file under local).

3) Use callbacks which add to the code without overriding.

4) Create an extension using the techniques above to manage the changes in a 
separate package (and possibly share with others).

Any of the above will work for making custom changes. I think an extension that 
allows you to set a preferred format via config and then uses that over the 
default in DurationAsString would be very useful. (RT features often begin life 
as extensions, then get pulled into core.)

On 2/1/16 3:17 PM, Matt Zagrabelny wrote:
> On Mon, Feb 1, 2016 at 2:08 PM, Keith Creasy <kcre...@aph.org> wrote:
>> I do see in the code how to display the TimeLeft in minutes. Now I wonder if 
>> I want to modify the file in ./share/html/Elements/RT__Ticket/ColumnMap.
> I wouldn't.
>
> Should this be done in a local callback?
>
> This is what I'd do.
>
> -m
>
> -
> RT 4.4 and RTIR Training Sessions 
> (http://bestpractical.com/services/training.html)
> * Hamburg Germany  March 14 & 15, 2016


-
RT 4.4 and RTIR Training Sessions 
(http://bestpractical.com/services/training.html)
* Hamburg Germany  March 14 & 15, 2016


[rt-users] Customizing the column mapRE: Time left... RE: Display time worked in search results in hours only

2016-02-01 Thread Keith Creasy
I do see in the code how to display the TimeLeft in minutes. Now I wonder if I 
want to modify the file in ./share/html/Elements/RT__Ticket/ColumnMap. Should 
this be done in a local callback? The example given is for adding a new search 
column but in this case I just want to override what is there for existing 
columns

I'd actually like to modify TimeEstimated, TimeWorked, and TimeLeft to display 
in hours.


Thanks.

Keith


-Original Message-
From: Jim Brandt [mailto:jbra...@bestpractical.com] 
Sent: Monday, February 01, 2016 2:04 PM
To: Keith Creasy; rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Time left... RE: Display time worked in search results 
in hours only

Hi Keith,

Yes, we read the mail that comes to the various lists and other places people 
post questions about RT. Unfortunately we don't have time to reply to all of 
the questions users have, but the rt-users list has a great volunteer community 
and I see you got some replies.

Looking below, I think you found the right section of the code. I think the 
best approach would be to add some column maps with the formats you want. The 
process to do that is documented here:

https://bestpractical.com/docs/rt/4.2/customizing/search_result_columns.html

Good luck!
Jim

On 2/1/16 1:06 PM, Keith Creasy wrote:
> Well, no definitive response on this. Does anyone from Best Practical even 
> read these?
>
>
> I can probably fix the problem is someone can just point me to where it 
> should bee fixed. Basically I want Time Estimated, TimeWorked, and TimeLeft 
> to always be in hours both for entry and for display in searches, charts, and 
> tickets. Years, months, and days are irrelevant for our purposes. I don't 
> think specific test criteria is necessary, the problem is plain if you just 
> create a search with the three fields in question displayed. The same for 
> charts and TimeWorked. I just created a chart that requested a summary  of 
> time worked and got "3m 5d 4h" which is pretty meaningless, especially since 
> several people have applied tie worked to the tickets.
>
>
> Thanks in advance for any assistance.
>
> Keith
>
> -Original Message-
> From: Matt Zagrabelny [mailto:mzagr...@d.umn.edu]
> Sent: Tuesday, January 26, 2016 3:37 PM
> To: Keith Creasy
> Subject: Re: [rt-users] Time left... RE: Display time worked in search 
> results in hours only
>
> On Tue, Jan 26, 2016 at 2:31 PM, Keith Creasy <kcre...@aph.org> wrote:
>> That is strange. They are converting somewhere.
>>
>> I wish all these columns would respect the user settings, minutes or hours. 
>> If you give time left a value of 100 hours the search displays 4 days which 
>> is not all all what we want. Either minutes or hours would work though we 
>> prefer hours.
> Perhaps file a bug report with definitive failure test cases.
>
> <rt-b...@bestpractical.com>
>
> -m
>
>> -Original Message-
>> From: Matt Zagrabelny [mailto:mzagr...@d.umn.edu]
>> Sent: Tuesday, January 26, 2016 2:39 PM
>> To: Keith Creasy
>> Cc: rt-users@lists.bestpractical.com
>> Subject: Re: [rt-users] Time left... RE: Display time worked in 
>> search results in hours only
>>
>> On Tue, Jan 26, 2016 at 12:17 PM, Keith Creasy <kcre...@aph.org> wrote:
>>> OK, I see that I made a mistake in the subject line.
>>>
>>> I mean "Time Left" as in the body and not "Time Worked" as in the subject.
>> It is strange. I put the three fields into the display of a search.
>> Only "Time Left" is displayed in hours, the other two fields (Time 
>> Worked and Time Estimated) show up in minutes. Looking at the column
>> map:
>>
>>  TimeWorked => {
>>  attribute => 'TimeWorked',
>>  title => 'Time Worked', # loc
>>  value => sub { return $_[0]->TimeWorkedAsString }
>>  },
>>  TimeLeft => {
>>  attribute => 'TimeLeft',
>>  title => 'Time Left', # loc
>>  value => sub { return $_[0]->TimeLeftAsString }
>>  },
>>  TimeEstimated => {
>>  attribute => 'TimeEstimated',
>>  title => 'Time Estimated', # loc
>>  value => sub { return $_[0]->TimeEstimatedAsString }
>>  },
>>
>> And here's the code for displaying the time:
>>
>> sub _DurationAsString {
>>  my $self = shift;
>>  my $value = shift;
>>  return "" unless $value;
>>  if ($value < 60) {
>>  return $self->loc("[quant,_1,minute,minutes]", $value);
>>  } else {
>>  my $h 

Re: [rt-users] Time left... RE: Display time worked in search results in hours only

2016-02-01 Thread Keith Creasy
Thanks, this is helpful but I'm not sure it provides what I want. For some 
reason the search column for TimeWorked does display in minutes, maybe I can 
fix it so that it uses hours at least, but the TimeWorked summary in "Charts" 
shows calendar units. Will modifying the column map fix that? I'll give it a 
try.

Thanks again.

Keith


-Original Message-
From: Jim Brandt [mailto:jbra...@bestpractical.com] 
Sent: Monday, February 01, 2016 2:04 PM
To: Keith Creasy; rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Time left... RE: Display time worked in search results 
in hours only

Hi Keith,

Yes, we read the mail that comes to the various lists and other places people 
post questions about RT. Unfortunately we don't have time to reply to all of 
the questions users have, but the rt-users list has a great volunteer community 
and I see you got some replies.

Looking below, I think you found the right section of the code. I think the 
best approach would be to add some column maps with the formats you want. The 
process to do that is documented here:

https://bestpractical.com/docs/rt/4.2/customizing/search_result_columns.html

Good luck!
Jim

On 2/1/16 1:06 PM, Keith Creasy wrote:
> Well, no definitive response on this. Does anyone from Best Practical even 
> read these?
>
>
> I can probably fix the problem is someone can just point me to where it 
> should bee fixed. Basically I want Time Estimated, TimeWorked, and TimeLeft 
> to always be in hours both for entry and for display in searches, charts, and 
> tickets. Years, months, and days are irrelevant for our purposes. I don't 
> think specific test criteria is necessary, the problem is plain if you just 
> create a search with the three fields in question displayed. The same for 
> charts and TimeWorked. I just created a chart that requested a summary  of 
> time worked and got "3m 5d 4h" which is pretty meaningless, especially since 
> several people have applied tie worked to the tickets.
>
>
> Thanks in advance for any assistance.
>
> Keith
>
> -Original Message-
> From: Matt Zagrabelny [mailto:mzagr...@d.umn.edu]
> Sent: Tuesday, January 26, 2016 3:37 PM
> To: Keith Creasy
> Subject: Re: [rt-users] Time left... RE: Display time worked in search 
> results in hours only
>
> On Tue, Jan 26, 2016 at 2:31 PM, Keith Creasy <kcre...@aph.org> wrote:
>> That is strange. They are converting somewhere.
>>
>> I wish all these columns would respect the user settings, minutes or hours. 
>> If you give time left a value of 100 hours the search displays 4 days which 
>> is not all all what we want. Either minutes or hours would work though we 
>> prefer hours.
> Perhaps file a bug report with definitive failure test cases.
>
> <rt-b...@bestpractical.com>
>
> -m
>
>> -Original Message-
>> From: Matt Zagrabelny [mailto:mzagr...@d.umn.edu]
>> Sent: Tuesday, January 26, 2016 2:39 PM
>> To: Keith Creasy
>> Cc: rt-users@lists.bestpractical.com
>> Subject: Re: [rt-users] Time left... RE: Display time worked in 
>> search results in hours only
>>
>> On Tue, Jan 26, 2016 at 12:17 PM, Keith Creasy <kcre...@aph.org> wrote:
>>> OK, I see that I made a mistake in the subject line.
>>>
>>> I mean "Time Left" as in the body and not "Time Worked" as in the subject.
>> It is strange. I put the three fields into the display of a search.
>> Only "Time Left" is displayed in hours, the other two fields (Time 
>> Worked and Time Estimated) show up in minutes. Looking at the column
>> map:
>>
>>  TimeWorked => {
>>  attribute => 'TimeWorked',
>>  title => 'Time Worked', # loc
>>  value => sub { return $_[0]->TimeWorkedAsString }
>>  },
>>  TimeLeft => {
>>  attribute => 'TimeLeft',
>>  title => 'Time Left', # loc
>>  value => sub { return $_[0]->TimeLeftAsString }
>>  },
>>  TimeEstimated => {
>>  attribute => 'TimeEstimated',
>>  title => 'Time Estimated', # loc
>>  value => sub { return $_[0]->TimeEstimatedAsString }
>>  },
>>
>> And here's the code for displaying the time:
>>
>> sub _DurationAsString {
>>  my $self = shift;
>>  my $value = shift;
>>  return "" unless $value;
>>  if ($value < 60) {
>>  return $self->loc("[quant,_1,minute,minutes]", $value);
>>  } else {
>>  my $h = sprintf("%.2f", $value / 60 );
>>  return $self->loc(&q

Re: [rt-users] Time left... RE: Display time worked in search results in hours only

2016-02-01 Thread Keith Creasy
Well, no definitive response on this. Does anyone from Best Practical even read 
these?


I can probably fix the problem is someone can just point me to where it should 
bee fixed. Basically I want Time Estimated, TimeWorked, and TimeLeft to always 
be in hours both for entry and for display in searches, charts, and tickets. 
Years, months, and days are irrelevant for our purposes. I don't think specific 
test criteria is necessary, the problem is plain if you just create a search 
with the three fields in question displayed. The same for charts and 
TimeWorked. I just created a chart that requested a summary  of time worked and 
got "3m 5d 4h" which is pretty meaningless, especially since several people 
have applied tie worked to the tickets.


Thanks in advance for any assistance.

Keith

-Original Message-
From: Matt Zagrabelny [mailto:mzagr...@d.umn.edu] 
Sent: Tuesday, January 26, 2016 3:37 PM
To: Keith Creasy
Subject: Re: [rt-users] Time left... RE: Display time worked in search results 
in hours only

On Tue, Jan 26, 2016 at 2:31 PM, Keith Creasy <kcre...@aph.org> wrote:
> That is strange. They are converting somewhere.
>
> I wish all these columns would respect the user settings, minutes or hours. 
> If you give time left a value of 100 hours the search displays 4 days which 
> is not all all what we want. Either minutes or hours would work though we 
> prefer hours.

Perhaps file a bug report with definitive failure test cases.

<rt-b...@bestpractical.com>

-m

>
> -Original Message-
> From: Matt Zagrabelny [mailto:mzagr...@d.umn.edu]
> Sent: Tuesday, January 26, 2016 2:39 PM
> To: Keith Creasy
> Cc: rt-users@lists.bestpractical.com
> Subject: Re: [rt-users] Time left... RE: Display time worked in search 
> results in hours only
>
> On Tue, Jan 26, 2016 at 12:17 PM, Keith Creasy <kcre...@aph.org> wrote:
>> OK, I see that I made a mistake in the subject line.
>>
>> I mean "Time Left" as in the body and not "Time Worked" as in the subject.
>
> It is strange. I put the three fields into the display of a search.
> Only "Time Left" is displayed in hours, the other two fields (Time 
> Worked and Time Estimated) show up in minutes. Looking at the column
> map:
>
> TimeWorked => {
> attribute => 'TimeWorked',
> title => 'Time Worked', # loc
> value => sub { return $_[0]->TimeWorkedAsString }
> },
> TimeLeft => {
> attribute => 'TimeLeft',
> title => 'Time Left', # loc
> value => sub { return $_[0]->TimeLeftAsString }
> },
> TimeEstimated => {
> attribute => 'TimeEstimated',
> title => 'Time Estimated', # loc
> value => sub { return $_[0]->TimeEstimatedAsString }
> },
>
> And here's the code for displaying the time:
>
> sub _DurationAsString {
> my $self = shift;
> my $value = shift;
> return "" unless $value;
> if ($value < 60) {
> return $self->loc("[quant,_1,minute,minutes]", $value);
> } else {
> my $h = sprintf("%.2f", $value / 60 );
> return $self->loc("[quant,_1,hour,hours] 
> ([quant,_2,minute,minutes])", $h, $value);
> }
> }
>
> Here are the ticket values:
>
> Estimated: 16.7 hours (1,000 minutes)
> Worked: 10 hours (600 minutes)
> Left: 8.3 hours (500 minutes)
>
> And here is what is displayed in the search:
>
> 1000
> 600
> 8 hours
>
> Something seems to be amiss with _DurationAsString.
>
> -m
>
>>
>> My version is 4.2.7
>>
>>
>> -Original Message-
>> From: Matt Zagrabelny [mailto:mzagr...@d.umn.edu]
>> Sent: Tuesday, January 26, 2016 12:47 PM
>> To: Keith Creasy
>> Cc: rt-users@lists.bestpractical.com
>> Subject: Re: [rt-users] Display time worked in search results in 
>> hours only
>>
>> Hi Keith,
>>
>> On Tue, Jan 26, 2016 at 11:29 AM, Keith Creasy <kcre...@aph.org> wrote:
>>> Hi. I’m going to try this but so far I’ve gotten little or no 
>>> response to anything I’ve asked.
>>
>> What version of RT are you running?
>>
>>> It appears that if you put the “Time Left” field in a search result 
>>> it tries to convert to days, which in our case is just confusing as 
>>> we are tracking actual work hours and not calendar time.
>>
>> Are you talking about a query predicate or the formatting of the displayed 
>> results?
>>
>> I'm running 4.2 and did a quick test and the displayed "Time Worked"
>> was in minutes.
>>
>> -m
>>
>> -
>> RT 4.4 and RTIR Training Sessions
>> (http://bestpractical.com/services/training.html)
>> * Hamburg Germany  March 14 & 15, 2016

-
RT 4.4 and RTIR Training Sessions 
(http://bestpractical.com/services/training.html)
* Hamburg Germany  March 14 & 15, 2016

[rt-users] Display time worked in search results in hours only

2016-01-26 Thread Keith Creasy
Hi. I'm going to try this but so far I've gotten little or no response to 
anything I've asked.


It appears that if you put the "Time Left" field in a search result it tries to 
convert to days, which in our case is just confusing as we are tracking actual 
work hours and not calendar time. Is there a way to change this so that it 
always uses minutes or, even better, hours? It would be nice if Estimated Time 
and Time Worked were also in hours as that is the default we have set when 
editing the values using the web interface.


Thanks for any help or at least good information.

Keith




[rt-users] Time left... RE: Display time worked in search results in hours only

2016-01-26 Thread Keith Creasy
OK, I see that I made a mistake in the subject line.

I mean "Time Left" as in the body and not "Time Worked" as in the subject.


My version is 4.2.7


-Original Message-
From: Matt Zagrabelny [mailto:mzagr...@d.umn.edu] 
Sent: Tuesday, January 26, 2016 12:47 PM
To: Keith Creasy
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Display time worked in search results in hours only

Hi Keith,

On Tue, Jan 26, 2016 at 11:29 AM, Keith Creasy <kcre...@aph.org> wrote:
> Hi. I’m going to try this but so far I’ve gotten little or no response 
> to anything I’ve asked.

What version of RT are you running?

> It appears that if you put the “Time Left” field in a search result it 
> tries to convert to days, which in our case is just confusing as we 
> are tracking actual work hours and not calendar time.

Are you talking about a query predicate or the formatting of the displayed 
results?

I'm running 4.2 and did a quick test and the displayed "Time Worked"
was in minutes.

-m

-
RT 4.4 and RTIR Training Sessions 
(http://bestpractical.com/services/training.html)
* Hamburg Germany  March 14 & 15, 2016

Re: [rt-users] Time left... RE: Display time worked in search results in hours only

2016-01-26 Thread Keith Creasy
That is strange. They are converting somewhere.

I wish all these columns would respect the user settings, minutes or hours. If 
you give time left a value of 100 hours the search displays 4 days which is not 
all all what we want. Either minutes or hours would work though we prefer hours.

-Original Message-
From: Matt Zagrabelny [mailto:mzagr...@d.umn.edu] 
Sent: Tuesday, January 26, 2016 2:39 PM
To: Keith Creasy
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Time left... RE: Display time worked in search results 
in hours only

On Tue, Jan 26, 2016 at 12:17 PM, Keith Creasy <kcre...@aph.org> wrote:
> OK, I see that I made a mistake in the subject line.
>
> I mean "Time Left" as in the body and not "Time Worked" as in the subject.

It is strange. I put the three fields into the display of a search.
Only "Time Left" is displayed in hours, the other two fields (Time Worked and 
Time Estimated) show up in minutes. Looking at the column
map:

TimeWorked => {
attribute => 'TimeWorked',
title => 'Time Worked', # loc
value => sub { return $_[0]->TimeWorkedAsString }
},
TimeLeft => {
attribute => 'TimeLeft',
title => 'Time Left', # loc
value => sub { return $_[0]->TimeLeftAsString }
},
TimeEstimated => {
attribute => 'TimeEstimated',
title => 'Time Estimated', # loc
value => sub { return $_[0]->TimeEstimatedAsString }
},

And here's the code for displaying the time:

sub _DurationAsString {
my $self = shift;
my $value = shift;
return "" unless $value;
if ($value < 60) {
return $self->loc("[quant,_1,minute,minutes]", $value);
} else {
my $h = sprintf("%.2f", $value / 60 );
return $self->loc("[quant,_1,hour,hours] ([quant,_2,minute,minutes])", 
$h, $value);
}
}

Here are the ticket values:

Estimated: 16.7 hours (1,000 minutes)
Worked: 10 hours (600 minutes)
Left: 8.3 hours (500 minutes)

And here is what is displayed in the search:

1000
600
8 hours

Something seems to be amiss with _DurationAsString.

-m

>
> My version is 4.2.7
>
>
> -Original Message-
> From: Matt Zagrabelny [mailto:mzagr...@d.umn.edu]
> Sent: Tuesday, January 26, 2016 12:47 PM
> To: Keith Creasy
> Cc: rt-users@lists.bestpractical.com
> Subject: Re: [rt-users] Display time worked in search results in hours 
> only
>
> Hi Keith,
>
> On Tue, Jan 26, 2016 at 11:29 AM, Keith Creasy <kcre...@aph.org> wrote:
>> Hi. I’m going to try this but so far I’ve gotten little or no 
>> response to anything I’ve asked.
>
> What version of RT are you running?
>
>> It appears that if you put the “Time Left” field in a search result 
>> it tries to convert to days, which in our case is just confusing as 
>> we are tracking actual work hours and not calendar time.
>
> Are you talking about a query predicate or the formatting of the displayed 
> results?
>
> I'm running 4.2 and did a quick test and the displayed "Time Worked"
> was in minutes.
>
> -m
>
> -
> RT 4.4 and RTIR Training Sessions 
> (http://bestpractical.com/services/training.html)
> * Hamburg Germany  March 14 & 15, 2016

-
RT 4.4 and RTIR Training Sessions 
(http://bestpractical.com/services/training.html)
* Hamburg Germany  March 14 & 15, 2016

[rt-users] Custom field that provides a sum of time estimated and time worked in child tickets

2016-01-05 Thread Keith Creasy
Hi all.


Before I get to far into the weeds is there already an easy way to do this? We 
want to total the time worked and time estimated for all the child tickets of 
what we have defined as "epic"'s. I can think of a few ways to do it but maybe 
there is already some easy way that I hadn't thought of.

Thanks.

Keith




[rt-users] Spreadsheet view?

2014-07-03 Thread Keith Creasy
It would be very nice if RT had a spreadsheet view for administrators. My use 
case is in editing and adjusting time estimates. Doing this one ticket at a 
time is very time consuming so if there wer a spreadsheet view or an editable 
search things could be done much more efficiently.


Keith

-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training

Re: [rt-users] Help with Unlabeled Buttons

2014-06-30 Thread Keith Creasy
Thanks Kevin.

You are correct. For example JAWS and NVDA screen readers don't seem to know 
how to speak the entity darr; (down arrow). Now that I see what's actually 
happening I wonder if this should be fixed in the screen reader configuration. 
Interestingly JAWS doesn't speak any of the arrows but another screen reader 
(NVDA) speaks the right arrow but not the up or down arrows. Maybe those 
character entities can be just added to JAWS and/or NDVA.

We could also perhaps use WAI ARIA to fix it.


Keith

-Original Message-
-From: rt-users [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of 
Kevin Falcone
Sent: Friday, June 27, 2014 6:13 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Help with Unlabeled Buttons

On Fri, Jun 27, 2014 at 08:20:30PM +, Keith Creasy wrote:
 The buttons appear in several places but one example is the screen 
 where you modify the content of a dashboard. The buttons to add a 
 search for example I think is a right-pointing arrow. There are also 
 up and down arrows that I believe move the item higher or lower on the 
 view. This isn't the only place but maybe that helps you pinpoint what 
 we need to change.

https://github.com/bestpractical/rt/blob/stable/share/html/Widgets/SelectionBox#L179
https://github.com/bestpractical/rt/blob/stable/share/html/Widgets/SelectionBox#L193

That widget is used in a number of places, so may fix several spots in the UI.  
I assume the problem is that we're using an HTML entity which the reader 
doesn't know how to deal with?

-kevin
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training


Re: [rt-users] Help with Unlabeled Buttons

2014-06-30 Thread Keith Creasy
Hi Kevin.

This fixes the problem but I can't figure out where on our server to make the 
change so that I can test the result. I tested on a simple, local file but when 
I change our server location which happens to be 
/opt/rt4/share/html/Widgets/SelectionBox It doesn't seem to make any 
difference. 


I used aria-label like this:

input aria-label=Move up name=moveup type=submit class=button value= 
uarr;  /
 input aria-label=Move down name=movedown type=submit class=button 
value= darr;  /


I'll b Happy to submit a patch but would like to get it on our own server first.

-Original Message-
From: rt-users [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of 
Kevin Falcone
Sent: Friday, June 27, 2014 6:13 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Help with Unlabeled Buttons

On Fri, Jun 27, 2014 at 08:20:30PM +, Keith Creasy wrote:
 The buttons appear in several places but one example is the screen 
 where you modify the content of a dashboard. The buttons to add a 
 search for example I think is a right-pointing arrow. There are also 
 up and down arrows that I believe move the item higher or lower on the 
 view. This isn't the only place but maybe that helps you pinpoint what 
 we need to change.

https://github.com/bestpractical/rt/blob/stable/share/html/Widgets/SelectionBox#L179
https://github.com/bestpractical/rt/blob/stable/share/html/Widgets/SelectionBox#L193

That widget is used in a number of places, so may fix several spots in the UI.  
I assume the problem is that we're using an HTML entity which the reader 
doesn't know how to deal with?

-kevin
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training


Re: [rt-users] Help with Unlabeled Buttons

2014-06-30 Thread Keith Creasy
No, I am not. This is probably what's happening. Thanks.

Keith


-Original Message-
From: rt-users [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of 
Kevin Falcone
Sent: Monday, June 30, 2014 5:28 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Help with Unlabeled Buttons

On Mon, Jun 30, 2014 at 05:27:20PM +, Keith Creasy wrote:
 This fixes the problem but I can't figure out where on our server to 
 make the change so that I can test the result. I tested on a simple, 
 local file but when I change our server location which happens to be 
 /opt/rt4/share/html/Widgets/SelectionBox It doesn't seem to make any 
 difference.

Are you clearing the mason cache and restarting apache?
rm -rf /opt/rt4/var/mason_data/obj/*

Otherwise RT serves the cached version of the file.

-kevin

 
 
 I used aria-label like this:
 
 input aria-label=Move up name=moveup type=submit class=button 
 value= uarr;  /  input aria-label=Move down name=movedown 
 type=submit class=button value= darr;  /
 
 
 I'll b Happy to submit a patch but would like to get it on our own server 
 first.
 
 -Original Message-
 From: rt-users [mailto:rt-users-boun...@lists.bestpractical.com] On 
 Behalf Of Kevin Falcone
 Sent: Friday, June 27, 2014 6:13 PM
 To: rt-users@lists.bestpractical.com
 Subject: Re: [rt-users] Help with Unlabeled Buttons
 
 On Fri, Jun 27, 2014 at 08:20:30PM +, Keith Creasy wrote:
  The buttons appear in several places but one example is the screen 
  where you modify the content of a dashboard. The buttons to add 
  a search for example I think is a right-pointing arrow. There are 
  also up and down arrows that I believe move the item higher or lower 
  on the view. This isn't the only place but maybe that helps you 
  pinpoint what we need to change.
 
 https://github.com/bestpractical/rt/blob/stable/share/html/Widgets/Sel
 ectionBox#L179
 https://github.com/bestpractical/rt/blob/stable/share/html/Widgets/Sel
 ectionBox#L193
 
 That widget is used in a number of places, so may fix several spots in the 
 UI.  I assume the problem is that we're using an HTML entity which the reader 
 doesn't know how to deal with?
 
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training


[rt-users] Help with Unlabeled Buttons

2014-06-27 Thread Keith Creasy
Hello.

RT 4.2.3 has some unlabeled buttons. We have several users who access the 
interface with a screen reader (for blind users) and these buttons are simply 
identified as button rather than something more meaningful. I think they are 
mostly arrow icons. One place they appear is in the search builder.

Can we simply add the labels ourselves for our installation? How can I find 
where the HTML files are in order to edit the interface?

Thanks.

Keith


-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training

Re: [rt-users] Help with Unlabeled Buttons

2014-06-27 Thread Keith Creasy
Thanks.

The buttons appear in several places but one example is the screen where you 
modify the content of a dashboard. The buttons to add a search for example 
I think is a right-pointing arrow. There are also up and down arrows that I 
believe move the item higher or lower on the view. This isn't the only place 
but maybe that helps you pinpoint what we need to change.

Regards,
Keith


-Original Message-
From: rt-users [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of 
Kevin Falcone
Sent: Friday, June 27, 2014 2:47 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Help with Unlabeled Buttons

On Fri, Jun 27, 2014 at 04:48:38PM +, Keith Creasy wrote:
 RT 4.2.3 has some unlabeled buttons. We have several users who access 
 the interface with a screen reader (for blind users) and these buttons 
 are simply identified as “button” rather than something more 
 meaningful. I think they are mostly arrow icons. One place they appear is in 
 the search builder.
 
 Can we simply add the labels ourselves for our installation? How can I 
 find where the HTML files are in order to edit the interface?

Add the labels and please send a patch
http://bestpractical.com/rt/issues.html

If you'd been more specific about which buttons, I could point more directly, 
but all of the html in RT is generated from mason templates in share/html/

-kevin
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training

[rt-users] Bulk update does not update custom fields?

2014-06-18 Thread Keith Creasy
Hi.

It appears that, even though the field appears on the bulk update form, that 
custom fields do not actually get updated. Is this true? If it is supposed to 
work, how?

We have a Grant Number custom field. I went to bulk update because I wanted 
to be sure the grant number for a specific queue for older tickets got the 
correct value. It appeared to work in that I got the list of tickets and the 
correct value after pressing the Update button. Then, when I listed or 
searched the tickets the grant number field still shows No value.

Thanks for any help.


-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training

[rt-users] Help adding accessibility features to the RT HTML interface

2014-05-02 Thread Keith Creasy
Hi.

In our department we have several blind users. I'd like to add accessibility 
features; shortcut keys, WAI ARIA regions, headings, etc. to the RT web 
interface. Surely this is documented somewhere. Can someone please point me to 
how one customizes the HTML used for the RT interface?

Thank you.

Keith

-- 
RT Training - Dallas May 20-21
http://bestpractical.com/training