Re: [rt-users] rt-crontool returns "No recipients found. Not sending."

2016-12-30 Thread Alex Hall
I just wondered if anyone had any ideas on this. I haven't gotten further
than what's in the below message, and I don't know why that isn't working.
I see similar addresses to the below in the mail logs all the time, so this
has to be some kind of address that RT understands. It just won't send
mail. Needless to say, my boss really wants stale ticket alerts to work,
and as far as I know, it's this one last problem that is stopping me from
doing that.

On Thu, Dec 22, 2016 at 4:17 PM, Alex Hall  wrote:

> Hi all,
> Further to my rt-crontool question about notifying ticket owners of
> untouched tickets, I've made a bit of progress in that I'm getting a new
> error. I tried adding
> --transaction first
> to the crontool call, and that seemed to do something. Now, I'm getting an
> error similar to:
>
> [17710] [Thu Dec 22 21:04:01 2016] [info]:  776.656-...@example.com> No recipients found. Not sending.
> (/opt/rt4/bin/../lib/RT/Interface/Email.pm:806)
>
> My actions are:
>
> --action RT::Action::Notify
> --action-arg RT::Action::NotifyOwnerOrAdminCc
> (also tried)
> --action-arg owner
>
> I don't know where this address is coming from, or what it means, but
> clearly some address is being found. Why would it say there are no
> recipients found, then? The ticket requestor is the same as the owner,
> because we have our RT set up to make that happen on ticket creation, if
> that will be a problem. What might I be missing? I'm so close to having
> this working! RT4.4.1, Debian 8. Thanks!
>
> --
> Alex Hall
> Automatic Distributors, IT department
> ah...@autodist.com
>



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


[rt-users] Wiki conventions?

2016-12-30 Thread Alex Hall
Hi all,
I've finally created an account on the RT wiki. This has been a really
great resource for me, but there are a lot of pages I've read in the last
few months with formatting mistakes, grammar problems, outdated information
that's not marked as not working under 4.x, and so on. I don't know how
much time I'll have to edit things, but I hope to try to contribute where I
can by fixing mistakes when I find them. I might add my own pages
eventually, but for now I'll stick to edits.

What are the conventions by which Best Practical likes people to operate?
For instance, if a page is understandable but could do with better grammar,
is it considered polite to correct it, or should it be left alone? What
other rules and conventions exist that I should keep in mind? Thanks.

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


Re: [rt-users] Putting CF values in email templates?

2016-12-30 Thread Shawn M Moore

> On Dec 30, 2016, at 12:35, Alex Hall  wrote:
> 
> Hi all,

Hi Alex,

> I'm trying to get CF values to conditionally appear in tickets, but when I 
> do, the template breaks and no emails get sent to anyone. I've seen a few 
> ways of doing this in the Wiki, each a bit different and many for different 
> RT versions. Here's my attempt. What did I do wrong?
> 
> {
> if(my $orderNumber = $Ticket->CustomFieldValues["Order Number"]) {

Your syntax is a little off. Instead of:

$Ticket->CustomFieldValues["Order Number"]

I think you want:

$Ticket->FirstCustomFieldValue("Order Number")

> "Testing printing the order number: " . $orderNumber . ""
> }
> }
> 
> Thank you for any information.

Best,
Shawn

[rt-users] Putting CF values in email templates?

2016-12-30 Thread Alex Hall
Hi all,
I'm trying to get CF values to conditionally appear in tickets, but when I
do, the template breaks and no emails get sent to anyone. I've seen a few
ways of doing this in the Wiki, each a bit different and many for different
RT versions. Here's my attempt. What did I do wrong?

{
if(my $orderNumber = $Ticket->CustomFieldValues["Order Number"]) {
"Testing printing the order number: " . $orderNumber . ""
}
}

Thank you for any information.

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