Re: [rt-users] clone ticket in RT 4.2

2014-01-27 Thread Alex Vandiver
On Mon, 2014-01-27 at 21:13 +, Brent Wiese wrote:
> I saw under the “General User UI” fixes in 4.2.2:
> 
> * Fix "Clone ticket" functionality with Select-multiple custom fields.
> 
>  
> 
> I don’t see anything in my UI about cloning a ticket. This is actually
> a feature I’ve been desiring, but the old plugin to do it didn’t work
> in the 4.x branch.
> 
>  
> 
> Am I missing something in the UI or is this a back-end thing that
> isn’t what I’m thinking/hoping it is?

This refers to the "(Create)" links in the Links box.  Clicking on that
creates a new ticket, linked via whichever linking method you chose.  It
also picks up many properties of the original ticket, including custom
fields[1].  Select-multiple CFs failed to get transferred correctly;
that is what the release note refers to.
 - Alex


[1] It also copies over Time Worked, which is often considered a bug.
For backwards-compatibility, we've not changed this yet, but there's a
branch to fix that for 4.4.



[rt-users] clone ticket in RT 4.2

2014-01-27 Thread Brent Wiese
I saw under the "General User UI" fixes in 4.2.2:
* Fix "Clone ticket" functionality with Select-multiple custom fields.

I don't see anything in my UI about cloning a ticket. This is actually a 
feature I've been desiring, but the old plugin to do it didn't work in the 4.x 
branch.

Am I missing something in the UI or is this a back-end thing that isn't what 
I'm thinking/hoping it is?

Thanks,
Brent


Re: [rt-users] clone ticket- disabling cloning of some fields RT4.0.5

2012-09-21 Thread Alex Young
Thanks, just what I needed.

-Original Message-
From: Christian Loos [mailto:cl...@netcologne.de] 
Sent: 21 September 2012 12:49
To: Alex Young
Cc: rt-users@lists.bestpractical.com
Subject: Re: clone ticket- disabling cloning of some fields RT4.0.5

Am 21.09.2012 13:01, schrieb Alex Young:
> Is it possible to disable cloning of the time worked, time estimated, 
> timeleft, priority, owner etc when clicking the 'create' link on a 
> ticket without editing the Create.html page?
> 
> I saw a patch was submitted for 3.8.x in 2009 to make this a 
> configurable option, but it looks like it didn't make it to RT4.
> 

I have recently done this for our RT 4.0.7 but with changing the
Create.html. Attached an patch.

You have to put this in etc/Site_Config.pm:

Set(@SkipFieldsOnTicketClone, qw(
Owner
Priority
TimeEstimated
TimeWorked
TimeLeft
)
);

I will send this within the next days to BPS to maybe integrate this in
RT 4.2.

Chris


Final RT training for 2012 in Atlanta, GA - October 23 & 24
  http://bestpractical.com/training

We're hiring! http://bestpractical.com/jobs


Re: [rt-users] clone ticket- disabling cloning of some fields RT4.0.5

2012-09-21 Thread Christian Loos
Am 21.09.2012 13:01, schrieb Alex Young:
> Is it possible to disable cloning of the time worked, time estimated,
> timeleft, priority, owner etc when clicking the 'create' link on a
> ticket without editing the Create.html page?
> 
> I saw a patch was submitted for 3.8.x in 2009 to make this a
> configurable option, but it looks like it didn't make it to RT4.
> 

I have recently done this for our RT 4.0.7 but with changing the
Create.html. Attached an patch.

You have to put this in etc/Site_Config.pm:

Set(@SkipFieldsOnTicketClone, qw(
Owner
Priority
TimeEstimated
TimeWorked
TimeLeft
)
);

I will send this within the next days to BPS to maybe integrate this in
RT 4.2.

Chris
>From 53272e2154ad5c3b44580e569194473544cfe594 Mon Sep 17 00:00:00 2001
From: Christian Loos 
Date: Wed, 29 Aug 2012 16:30:37 +0200
Subject: [PATCH] new config option $SkipFieldsOnTicketClone

---
 html/Ticket/Create.html |6 --
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/html/Ticket/Create.html b/html/Ticket/Create.html
index f6ba2e6..5493685 100644
--- a/html/Ticket/Create.html
+++ b/html/Ticket/Create.html
@@ -346,8 +346,10 @@ if ($CloneTicket) {
 @cf_values;
 }
 
-for ( keys %$clone ) {
-$ARGS{$_} = $clone->{$_} if not defined $ARGS{$_};
+my @skip_fields = RT->Config->Get('SkipFieldsOnTicketClone');
+foreach my $field ( keys %$clone ) {
+next if grep {$_ eq $field} @skip_fields;
+$ARGS{$field} = $clone->{$field} if not defined $ARGS{$field};
 }
 
 }
-- 
1.7.2.5



Final RT training for 2012 in Atlanta, GA - October 23 & 24
  http://bestpractical.com/training

We're hiring! http://bestpractical.com/jobs


[rt-users] clone ticket- disabling cloning of some fields RT4.0.5

2012-09-21 Thread Alex Young
Is it possible to disable cloning of the time worked, time estimated,
timeleft, priority, owner etc when clicking the 'create' link on a
ticket without editing the Create.html page?

I saw a patch was submitted for 3.8.x in 2009 to make this a
configurable option, but it looks like it didn't make it to RT4.


Final RT training for 2012 in Atlanta, GA - October 23 & 24
  http://bestpractical.com/training

We're hiring! http://bestpractical.com/jobs


Re: [rt-users] clone ticket?

2009-02-10 Thread Jo Rhett
On Feb 10, 2009, at 1:16 PM, Jerrad Pierce wrote:
> The link indicates that Mark's implementation is not a patch,
> but an extension *for 3.8*


I know.  In the time that this thread has gone on, I have already  
built and installed and tested that extension ;-)

-- 
Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source  
and other randomness


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] clone ticket?

2009-02-10 Thread Jo Rhett
On Feb 10, 2009, at 1:17 PM, Jesse Vincent wrote:
> Clone ticket is what became the "create" buttons next to the various
> relationships on the ticket display page.


Ah, that makes sense.  Thanks for the history.

--  
Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source  
and other randomness


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] clone ticket?

2009-02-10 Thread Jesse Vincent



On Tue 10.Feb'09 at 15:57:56 -0500, Jerrad Pierce wrote:
> On Tue, Feb 10, 2009 at 15:29, Jo Rhett  wrote:
> > The mail archives show Jesse consistently referring to CloneTicket...
> > but I can't find this in RT, nor in the Wiki, nor in Google.   Did
> > this feature just not happen?
> Not yet, again, see extension version of Dirk's patch by Mark Roedel:
> 
> http://www.gossamer-threads.com/lists/rt/users/80499#80499

Clone ticket is what became the "create" buttons next to the various
relationships on the ticket display page.

> ___
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Community help: http://wiki.bestpractical.com
> Commercial support: sa...@bestpractical.com
> 
> 
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com
> 

-- 


pgpamDEGAcZM0.pgp
Description: PGP signature
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] clone ticket?

2009-02-10 Thread Jerrad Pierce
> I already have that patch.  I was just trying to be certain that some
> functionality didn't get added to 3.8 which would provided similar
> functions.
Your question didn't convey that.

The link indicates that Mark's implementation is not a patch,
but an extension *for 3.8*

-- 
Cambridge Energy Alliance: Save money. Save the planet.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] clone ticket?

2009-02-10 Thread Jo Rhett
On Feb 10, 2009, at 12:57 PM, Jerrad Pierce wrote:
> On Tue, Feb 10, 2009 at 15:29, Jo Rhett   
> wrote:
>> The mail archives show Jesse consistently referring to CloneTicket...
>> but I can't find this in RT, nor in the Wiki, nor in Google.   Did
>> this feature just not happen?
> Not yet, again, see extension version of Dirk's patch by Mark Roedel:
>
> http://www.gossamer-threads.com/lists/rt/users/80499#80499


I already have that patch.  I was just trying to be certain that some  
functionality didn't get added to 3.8 which would provided similar  
functions.

-- 
Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source  
and other randomness


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] clone ticket?

2009-02-10 Thread Jerrad Pierce
On Tue, Feb 10, 2009 at 15:29, Jo Rhett  wrote:
> The mail archives show Jesse consistently referring to CloneTicket...
> but I can't find this in RT, nor in the Wiki, nor in Google.   Did
> this feature just not happen?
Not yet, again, see extension version of Dirk's patch by Mark Roedel:

http://www.gossamer-threads.com/lists/rt/users/80499#80499
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] clone ticket?

2009-02-10 Thread Jo Rhett
The mail archives show Jesse consistently referring to CloneTicket...  
but I can't find this in RT, nor in the Wiki, nor in Google.   Did  
this feature just not happen?

-- 
Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source  
and other randomness


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com