Skip Menu |
 

This queue is for tickets about the RT-Extension-MandatoryOnTransition CPAN distribution.

Report information
The Basics
Id: 83976
Status: rejected
Priority: 0/
Queue: RT-Extension-MandatoryOnTransition

People
Owner: Nobody in particular
Requestors: Chris.Wolfrom [...] salemfive.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



From Chris.Wolfrom [...] salemfive.com Fri Mar 15 14: 17:07 2013
MIME-Version: 1.0
X-Spam-Status: No, score=-6.234 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_SOFTFAIL=0.665] autolearn=ham
X-Spam-Flag: NO
Acceptlanguage: en-US
Content-Language: en-US
Content-Type: multipart/alternative; boundary="_000_67BDE64C43E56147AF29BD792606E051140B4C38EDASEXCHMBcorps_"
Message-ID: <67BDE64C43E56147AF29BD792606E051140B4C38ED [...] ASEXCH-MB.corp.salem5.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-MS-Tnef-Correlator:
X-Spam-Score: -6.234
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id AADD5240712 for <cpan-bug+RT-Extension-MandatoryOnTransition [...] hipster.bestpractical.com>; Fri, 15 Mar 2013 14:17:07 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6teHJIwyHyTv for <cpan-bug+RT-Extension-MandatoryOnTransition [...] hipster.bestpractical.com>; Fri, 15 Mar 2013 14:17:05 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id DC5BF2406FF for <bug-RT-Extension-MandatoryOnTransition [...] rt.cpan.org>; Fri, 15 Mar 2013 14:17:04 -0400 (EDT)
Received: (qmail 8886 invoked by uid 103); 15 Mar 2013 18:17:04 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 15 Mar 2013 18:17:04 -0000
Received: from protect.salemfive.com (HELO protect.salemfive.com) (209.31.129.200) by 16.mx.develooper.com (qpsmtpd/0.84/v0.84-167-g4ed6cab) with ESMTP; Fri, 15 Mar 2013 11:16:57 -0700
Received: from localhost (localhost.localdomain [127.0.0.1]) by protect.salemfive.com (postfix) with ESMTP id 3AE6A8E4BD5 for <bug-RT-Extension-MandatoryOnTransition [...] rt.cpan.org>; Fri, 15 Mar 2013 14:16:54 -0400 (EDT)
Received: from ASEXCH-HUB.corp.salem5.com (unknown [10.164.210.41]) by protect.salemfive.com (postfix) with ESMTP for <bug-RT-Extension-MandatoryOnTransition [...] rt.cpan.org>; Fri, 15 Mar 2013 14:16:53 -0400 (EDT)
Received: from ASEXCH-MB.corp.salem5.com ([10.164.210.11]) by ASEXCH-HUB.corp.salem5.com ([fe80::41c4:3745:aa1c:2b71%10]) with mapi; Fri, 15 Mar 2013 14:16:53 -0400
Delivered-To: cpan-bug+RT-Extension-MandatoryOnTransition [...] hipster.bestpractical.com
Subject: Ticket Custom Fields
Return-Path: <Chris.Wolfrom [...] salemfive.com>
X-RT-Mail-Extension: rt-extension-mandatoryontransition
X-Original-To: cpan-bug+RT-Extension-MandatoryOnTransition [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
Thread-Index: Ac4hqJUuFN1NyLePTdiGZo543RphBQ==
Date: Fri, 15 Mar 2013 14:16:51 -0400
X-Spam-Level:
X-MS-Has-Attach:
Thread-Topic: Ticket Custom Fields
Accept-Language: en-US
To: <bug-RT-Extension-MandatoryOnTransition [...] rt.cpan.org>
From: <Chris.Wolfrom [...] salemfive.com>
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: us-ascii
Content-Length: 1075
Hello, I was attempting to make a ticket custom field mandatory when the ticket is resolved and ran into this issue. With the configuration that follows, the "TimeWorked" field is made mandatory, but the "CF.MyField" custom field is not. Set( %MandatoryOnTransition, Helpdesk => { '* -> resolved' => ['TimeWorked', 'CF.MyField'], }, ); Since the custom field was a ticket custom field I tried changing the prefix from "CF" to "TicketCF". This resulted in making all of the ticket custom fields mandatory instead of just the one I specified. Set( %MandatoryOnTransition, Helpdesk => { '* -> resolved' => ['TimeWorked', 'TicketCF.MyField'], }, ); I may be doing something incorrectly, but thought I would report it anyway. All-in-all still a good extension as it was the "TimeWorked" field I was after in the first place. Regards, Chris Wolfrom Enterprise Solutions Architect Salem Five Bank (e) chris.wolfrom@salemfive.com<mailto:chris.wolfrom@salemfive.com> (p) 978.720.5383 (f) 978.498.0312
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: us-ascii
Content-Length: 4536
From trs [...] bestpractical.com Thu Mar 21 14: 22:59 2013
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-20833-1363371429-1305.83976-4-0 [...] rt.cpan.org>
References: <RT-Ticket-83976 [...] rt.cpan.org> <67BDE64C43E56147AF29BD792606E051140B4C38ED [...] ASEXCH-MB.corp.salem5.com> <rt-3.8.HEAD-20833-1363371429-1305.83976-4-0 [...] rt.cpan.org>
Message-ID: <514B5002.3040705 [...] bestpractical.com>
Content-Type: text/plain; charset=UTF-8
X-RT-Original-Encoding: utf-8
Received: from [10.0.0.8] (c-67-183-142-187.hsd1.wa.comcast.net [67.183.142.187]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by hipster.bestpractical.com (Postfix) with ESMTPS id AA3F1240731 for <bug-RT-Extension-MandatoryOnTransition [...] rt.cpan.org>; Thu, 21 Mar 2013 14:22:59 -0400 (EDT)
Delivered-To: cpan-bug+RT-Extension-MandatoryOnTransition [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #83976] Ticket Custom Fields
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4
Return-Path: <trs [...] bestpractical.com>
X-Original-To: bug-RT-Extension-MandatoryOnTransition [...] rt.cpan.org
X-RT-Mail-Extension: rt-extension-mandatoryontransition
Date: Thu, 21 Mar 2013 11:22:58 -0700
To: bug-RT-Extension-MandatoryOnTransition [...] rt.cpan.org
X-Enigmail-Version: 1.5.1
Content-Transfer-Encoding: 7bit
From: Thomas Sibley <trs [...] bestpractical.com>
RT-Message-ID: <rt-3.8.HEAD-8941-1363890180-1989.83976-0-0 [...] rt.cpan.org>
Content-Length: 1104
On 03/15/2013 11:17 AM, Chris.Wolfrom via RT wrote: Show quoted text
> I was attempting to make a ticket custom field mandatory when the ticket is resolved and ran into this issue. With the configuration that follows, the "TimeWorked" field is made mandatory, but the "CF.MyField" custom field is not. > > Set( %MandatoryOnTransition, > Helpdesk => { > '* -> resolved' => ['TimeWorked', 'CF.MyField'], > }, > );
Is your custom field actually named "MyField"? If so, the above should work. Otherwise, you need to use the actual name of your CF. This extension works in production on a number of RT instances and tests pass, so I suspect your problems are a configuration error. Show quoted text
> Since the custom field was a ticket custom field I tried changing the > prefix from "CF" to "TicketCF". This resulted in making all of the > ticket custom fields mandatory instead of just the one I specified.
I'm very skeptical that all of the CFs were made mandatory by spelling "CF" as "TicketCF". I suspect you're mistaken. Note that "TicketCF" will never work and isn't documented anywhere.
From Chris.Wolfrom [...] salemfive.com Fri Mar 22 11: 14:08 2013
MIME-Version: 1.0
X-Spam-Status: No, score=-6.234 tagged_above=-99.9 required=10 tests=[AWL=0.001, BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_SOFTFAIL=0.665] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-8941-1363890180-374.83976-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
Acceptlanguage: en-US
References: <RT-Ticket-83976 [...] rt.cpan.org> <67BDE64C43E56147AF29BD792606E051140B4C38ED [...] ASEXCH-MB.corp.salem5.com> <rt-3.8.HEAD-20833-1363371429-1305.83976-4-0 [...] rt.cpan.org> <514B5002.3040705 [...] bestpractical.com> <rt-3.8.HEAD-8941-1363890180-374.83976-6-0 [...] rt.cpan.org>
Content-Language: en-US
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <67BDE64C43E56147AF29BD792606E051142179D860 [...] ASEXCH-MB.corp.salem5.com>
Content-Type: text/plain; charset="utf-8"
X-MS-Tnef-Correlator:
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.234
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id D3799240731 for <cpan-bug+RT-Extension-MandatoryOnTransition [...] hipster.bestpractical.com>; Fri, 22 Mar 2013 11:14:08 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IaTLMLYyjdL6 for <cpan-bug+RT-Extension-MandatoryOnTransition [...] hipster.bestpractical.com>; Fri, 22 Mar 2013 11:14:06 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 2AFEA240661 for <bug-RT-Extension-MandatoryOnTransition [...] rt.cpan.org>; Fri, 22 Mar 2013 11:14:05 -0400 (EDT)
Received: (qmail 31355 invoked by uid 103); 22 Mar 2013 15:14:05 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 22 Mar 2013 15:14:05 -0000
Received: from protect.salemfive.com (HELO protect.salemfive.com) (209.31.129.200) by 16.mx.develooper.com (qpsmtpd/0.84/v0.84-167-g4ed6cab) with ESMTP; Fri, 22 Mar 2013 08:13:58 -0700
Received: from localhost (localhost.localdomain [127.0.0.1]) by protect.salemfive.com (postfix) with ESMTP id F0BB98E4BB3 for <bug-RT-Extension-MandatoryOnTransition [...] rt.cpan.org>; Fri, 22 Mar 2013 11:13:54 -0400 (EDT)
Received: from ASEXCH-HUB.corp.salem5.com (asexch-hub.corp.salem5.com [10.164.210.10]) by protect.salemfive.com (postfix) with ESMTP for <bug-RT-Extension-MandatoryOnTransition [...] rt.cpan.org>; Fri, 22 Mar 2013 11:13:53 -0400 (EDT)
Received: from ASEXCH-MB.corp.salem5.com ([10.164.210.11]) by ASEXCH-HUB.corp.salem5.com ([fe80::41c4:3745:aa1c:2b71%10]) with mapi; Fri, 22 Mar 2013 11:13:53 -0400
Delivered-To: cpan-bug+RT-Extension-MandatoryOnTransition [...] hipster.bestpractical.com
Subject: RE: [rt.cpan.org #83976] Ticket Custom Fields
Return-Path: <Chris.Wolfrom [...] salemfive.com>
Thread-Index: Ac4mYSEPBA3bhhWjSJCbNi16syCH+wArgzVw
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+RT-Extension-MandatoryOnTransition [...] hipster.bestpractical.com
X-RT-Mail-Extension: rt-extension-mandatoryontransition
Date: Fri, 22 Mar 2013 11:13:53 -0400
X-Spam-Level:
Thread-Topic: [rt.cpan.org #83976] Ticket Custom Fields
X-MS-Has-Attach:
To: <bug-RT-Extension-MandatoryOnTransition [...] rt.cpan.org>
Accept-Language: en-US
Content-Transfer-Encoding: base64
From: <Chris.Wolfrom [...] salemfive.com>
RT-Message-ID: <rt-3.8.HEAD-28746-1363965249-1103.83976-0-0 [...] rt.cpan.org>
Content-Length: 1697
Download (untitled) / with headers
text/plain 1.6k
No, the custom field is named "Issue Type". I was only using "MyField" to be clear. The actual directive in my RT_SiteConfig file is: Set( %MandatoryOnTransition, 'Help Desk' => { '* -> resolved' => ['TimeWorked', 'CF.Issue Type' ], }, ); Show quoted text
-----Original Message----- From: trs@bestpractical.com via RT [mailto:bug-RT-Extension-MandatoryOnTransition@rt.cpan.org] Sent: Thursday, March 21, 2013 2:23 PM To: Wolfrom, Chris Subject: Re: [rt.cpan.org #83976] Ticket Custom Fields <URL: https://rt.cpan.org/Ticket/Display.html?id=83976 > On 03/15/2013 11:17 AM, Chris.Wolfrom via RT wrote:
> I was attempting to make a ticket custom field mandatory when the ticket is resolved and ran into this issue. With the configuration that follows, the "TimeWorked" field is made mandatory, but the "CF.MyField" custom field is not. > > Set( %MandatoryOnTransition, > Helpdesk => { > '* -> resolved' => ['TimeWorked', 'CF.MyField'], > }, > );
Is your custom field actually named "MyField"? If so, the above should work. Otherwise, you need to use the actual name of your CF. This extension works in production on a number of RT instances and tests pass, so I suspect your problems are a configuration error.
> Since the custom field was a ticket custom field I tried changing the > prefix from "CF" to "TicketCF". This resulted in making all of the > ticket custom fields mandatory instead of just the one I specified.
I'm very skeptical that all of the CFs were made mandatory by spelling "CF" as "TicketCF". I suspect you're mistaken. Note that "TicketCF" will never work and isn't documented anywhere.
From trs [...] bestpractical.com Tue Mar 26 18: 29:51 2013
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-28746-1363965249-759.83976-5-0 [...] rt.cpan.org>
References: <RT-Ticket-83976 [...] rt.cpan.org> <67BDE64C43E56147AF29BD792606E051140B4C38ED [...] ASEXCH-MB.corp.salem5.com> <rt-3.8.HEAD-20833-1363371429-1305.83976-4-0 [...] rt.cpan.org> <514B5002.3040705 [...] bestpractical.com> <rt-3.8.HEAD-8941-1363890180-374.83976-6-0 [...] rt.cpan.org> <67BDE64C43E56147AF29BD792606E051142179D860 [...] ASEXCH-MB.corp.salem5.com> <rt-3.8.HEAD-28746-1363965249-759.83976-5-0 [...] rt.cpan.org>
Message-ID: <5152215D.60704 [...] bestpractical.com>
Content-Type: text/plain; charset=UTF-8
X-RT-Original-Encoding: utf-8
Received: from [10.0.0.8] (c-67-183-142-187.hsd1.wa.comcast.net [67.183.142.187]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by hipster.bestpractical.com (Postfix) with ESMTPS id 690B82407B7 for <bug-RT-Extension-MandatoryOnTransition [...] rt.cpan.org>; Tue, 26 Mar 2013 18:29:50 -0400 (EDT)
Delivered-To: cpan-bug+RT-Extension-MandatoryOnTransition [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #83976] Ticket Custom Fields
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4
Return-Path: <trs [...] bestpractical.com>
X-Original-To: bug-RT-Extension-MandatoryOnTransition [...] rt.cpan.org
X-RT-Mail-Extension: rt-extension-mandatoryontransition
Date: Tue, 26 Mar 2013 15:29:49 -0700
To: bug-RT-Extension-MandatoryOnTransition [...] rt.cpan.org
X-Enigmail-Version: 1.5.1
Content-Transfer-Encoding: 7bit
From: Thomas Sibley <trs [...] bestpractical.com>
RT-Message-ID: <rt-3.8.HEAD-3666-1364336992-1271.83976-0-0 [...] rt.cpan.org>
Content-Length: 659
Download (untitled) / with headers
text/plain 659b
On 03/22/2013 08:14 AM, Chris.Wolfrom via RT wrote: Show quoted text
> No, the custom field is named "Issue Type". I was only using "MyField" to be clear. The actual directive in my RT_SiteConfig file is: > > Set( %MandatoryOnTransition, > 'Help Desk' => { > '* -> resolved' => ['TimeWorked', 'CF.Issue Type' ], > }, > );
That should work just fine and a similar setup is in our unit tests for this extension. My only guess without more info is that it's a permissions issue around the ShowCustomField/ModifyCustomField rights on your system. If you try as root or another RT superuser, is it different? What ticket page are you trying this on? Thomas


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.