Re: [rt-users] Anyone know how to create a clickable link like this?

2016-06-24 Thread Mike Johnson
Hmm,

If it's trying to use a script tag... I'm guessing the emails being sent
must be sent as HTML?

i'm going to have to give this a try... much appreciated Dustin!

On Fri, Jun 17, 2016 at 11:41 AM, Dustin Graves 
wrote:

> Hi Mike,
>
> This is a pretty neat idea. I looked into it a bit and it seems to be what
> Gmail calls a ‘Go-To Action’
> https://developers.google.com/gmail/markup/reference/go-to-action
>
> I couldn’t get it to work in my first pass, but Gmail was also flagging my
> test RT as spam so I don’t know if that has something to do with the link
> not showing up.
>
> I’ll play around with it a little more when I get the chance.
>
> Thank you,
> Dustin
>
> On Jun 17, 2016, at 11:15 AM, Mike Johnson  wrote:
>
> So, easy to create a link in the emails triggered by scrips... but, I see
> Zendesk(another ticketing system) that I interact with for another software
> we run onsite sends emails that show up in GMail with this cool little
> button...
>
> 
>
> Anyone know what creates this and has anyone tried making something like
> this within RT templates?
>
> --
> Mike Johnson
> Datatel Programmer/Analyst
> Northern Ontario School of Medicine
> 955 Oliver Road
> Thunder Bay, ON   P7B 5E1
> Phone: (807) 766-7331
> Email: mike.john...@nosm.ca
> -
> RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
> * Los Angeles - September, 2016
>
>
>


-- 
Mike Johnson
Datatel Programmer/Analyst
Northern Ontario School of Medicine
955 Oliver Road
Thunder Bay, ON   P7B 5E1
Phone: (807) 766-7331
Email: mike.john...@nosm.ca
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


Re: [rt-users] Ticket detail is not shown when create new ticket

2016-06-24 Thread Dustin Graves
Hi Sharizan,

This looks like you have the RT 4.2.x version cached in your web browser. If 
you do a hard reset to clear your cache and refresh it should work.

Thank you,
Dustin

> On Jun 24, 2016, at 8:09 AM, Sharizan Sumuui  wrote:
> 
> Hi,
> 
> I have newly installed RT4.4.0 but text field for ticket detail is not 
> appearing when I create new ticket.
> Appreciate your expert advice on this abnormality.
> 
> 
> Thank you
> Regards,
> Sharizan Sumuui
> 
> -
> RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
> * Los Angeles - September, 2016

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


Re: [rt-users] [rt-announce] New site for the RT Wiki

2016-06-24 Thread Jim Brandt

Hi Cris,

I enabled file uploads, so you can now upload images. Let me know if you 
need a file format not allowed.


We also had a suggestion to add the syntax highlighting extension, so I 
have installed that. You can see an example here:


https://rt-wiki.bestpractical.com/index.php?title=RT_Config

Thanks,
Jim

On 6/21/16 4:32 AM, Guadagnino Cristiano wrote:

Hi Jim,
this is great news, since Wikia has become really unusable, even with AdBlock
turned on. Moreover, my employer just blocked Wikia because of the main focus
on gaming.

I spent an hour yesterday reformatting my articles for the new wiki (some
formatting had been lost). Now everything is good, but my articles are lacking
images.

I recovered the original images from Wikia, but apparently the new wiki is not
configured to allow image upload.

Are you going to fix this problem, or should we rely on an external image
repository?

Regards
Cris



Il venerdì 17 giugno 2016 alle 12:58:56 CEST, Jim Brandt ha scritto:

Hello RT Users,

Best Practical is moving the RT wiki to a new hosting site!

If you've used the RT community wiki over the years, you may have
noticed the ads have increased quite a bit on Wikia. To make sure RT
users have a productive environment to share their RT knowledge, we're
moving to our own hosted wiki so you can focus just on reading about and
sharing RT knowledge.

We need your help to complete the cut-over.

The new wiki is now available here:

https://rt-wiki.bestpractical.com

We have copied over all of the great content from the current wiki and
now we'd like you to check the new site and confirm the content has been
copied correctly. Also, we're unable to move the accounts, so we'd like
you to sign up for a new account and try editing some pages.

Our plan is to welcome feedback for the next 2 weeks and fix any issues
you discover. Assuming there are no major issues, on Wednesday, June 29,
we're targeting a cut-over where we'll make the new wiki the primary RT
wiki. Shortly after that, we'll work on turning off the version on Wikia.

You can see current changes and issues, and add new ones, here:

https://rt-wiki.bestpractical.com/index.php?title=Wikia_Move

Or send email to us at feedb...@bestpractical.com

We hope you like the new wiki site and as always, thanks for your help
and support for RT!

Best Practical
___
rt-announce mailing list
rt-annou...@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-announce
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016



-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


Re: [rt-users] Re-Display Ticket with added warning if owner changed during responding

2016-06-24 Thread Jim Brandt

On 6/23/16 8:19 AM, David Schmidt wrote:

Hello

In case someone takes the ticket ownership wile I am composing a
response I would like to redisplay the ticket (the submitted response
shouldnt be deleted) and add a warning informing the user about the
change in ownership.

I guess this is the correct callback

html/Callbacks/RT-Extension-WarnTicketTaken/Ticket/Update.html/BeforeSubmit

but /Ticket/Update.html is quite the monster for an unexperienced RT
dev. :)

Where can I get the response text from so it doesnt get lost and how do
I add a warning?


I might try the BeforeUpdate callback. You should be able to use the 
validation code to add your new check. You can make the page redisplay 
by setting $checks_failure to 1 and you can display a message by adding 
it to @results. BeforeUpdate gives you both of those. You can see an 
example above after the call to ValidateCustomFields.


unless ( $status ) {
push @results, @msg;
$checks_failure = 1;
}

You shouldn't need to worry about re-adding input values yourself, it 
should happen automatically.


You didn't mention your RT version, but this should be similar across 
most current versions.

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


[rt-users] Ticket detail is not shown when create new ticket

2016-06-24 Thread Sharizan Sumuui
Hi,

I have newly installed RT4.4.0 but text field for ticket detail is not
appearing when I create new ticket.
Appreciate your expert advice on this abnormality.

Thank you
Regards,
Sharizan Sumuui



-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


Re: [rt-users] Getting CurrentUser reference in Users overlay file

2016-06-24 Thread aniket tripathy
My bad, in the above script, the $self was holding the 1st argument, rather
than the reference of RT::Users class.

The original subroutine returns the ref of RT::Users.
As per the documentation of Hook::Lexwrap, the returned value from the
original subroutine should be accessible from the post subroutine using
$_[-1].

When I access $_[-1], using print or warn, I get the warning
* [warning]: Use of uninitialized value $_[-1] in concatenation (.) or
string*

Users_Local.pm
---
package RT::Users;
use strict;
use Hook::LexWrap;
wrap 'SimpleSearch' =>
post=> sub {
RT::Logger->info("accessing return value here $_[-1]");
RT::Logger->info("I got the arguments in post: [@_]");
},
;
1;

Can anybody please help how will I be able to fetch the value returned by
the original subroutine ?
Thanks.



On Tue, Jun 21, 2016 at 1:05 PM, aniket tripathy 
wrote:

> Hi,
>
> I intend to filter the results returned by SimpleSearch method in Users.pm
> based on the custom field value set in the current user logged in.
>
> I am using Hook::LexWrap in the Users_Local.pm overlay file, to write a
> post method to filter the results of SimpleSearch. How can I get a ref of
> CurrentUser which in turn will help to fetch the custom field value on that
> user?
>
> I tried using
> my $user = $self->CurrentUser;
>
> But getting the following error:
> [error]: Can't locate object method "CurrentUser" via package "Privileged"
> (perhaps you forgot to load "Privileged"?)
>
> Can anybody suggest what am I doing wrong here?
>
> Thanks in Advance.
>
> -Aniket
>
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016