[rt-users] SOS - RT 4.0.1 wont work after restarting the server from a power outage

2011-12-20 Thread omaisz-takács dániel
Hi all,

Our server got a crash from a power outage, after restarting our RT  jumps
to the /Install/index.html site, with only one message:

Config file /opt/rt/etc/RT_SiteConfig.pm is locked

 

I found out if I give write permission to the SiteConfig, it will go into
the install procedure, but I don't want that, as this RT instance is in full
production now.

 

Please give some guidance, as fast as possible.

Thank you! All help is welcome!

Regards,

Daniel

 


RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

[rt-users] Better way to create a dialog on submit?

2011-12-20 Thread Mike Johnson
I want to be able to catch form submits to ask various are you sure?
questions to users as they do their work in RT. The only way I could think
of is inserting javascript into the various forms.

For example(this is only an example):

Only change queue if no work is done in your area, if you need work from
another area to help complete this ticket, please create a child ticket

Are you sure you want to change queue?

Yes | No

If I could do something like the above, I'd be able to put a fair bit more
business logic/rules into RTs hands and take it away from the users(who
tend to by-pass the rules half the time...).

Is there any better way then actually editing the code to include
javascript? I would love to have a modular way of doing it so I could
replace the functionality quickly after upgrading.

Thanks for your insight!
-- 
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 Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

Re: [rt-users] Better way to create a dialog on submit?

2011-12-20 Thread Thomas Sibley
On 12/20/2011 09:08 AM, Mike Johnson wrote:
 Is there any better way then actually editing the code to include
 javascript? I would love to have a modular way of doing it so I could
 replace the functionality quickly after upgrading.

There's no need to edit RT's core code for this.  You'd be using JS
events for this and you can attach those to the elements you want from
within your own javascript file.

Thomas

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012


Re: [rt-users] SOS - RT 4.0.1 wont work after restarting the server from a power outage

2011-12-20 Thread Thomas Sibley
On 12/20/2011 06:19 AM, omaisz-takács dániel wrote:
 Our server got a “crash” from a power outage, after restarting our RT
  jumps to the /Install/index.html site, with only one message:
 
 Config file /opt/rt/etc/RT_SiteConfig.pm is locked
 
 I found out if I give write permission to the SiteConfig, it will go
 into the install procedure, but I don’t want that, as this RT instance
 is in full production now.

RT going into install mode means that it can't find your database.
Check that your database server is running, not corrupted, and that you
can run queries on it by hand.

Thomas

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012

[rt-users] create more approval queues

2011-12-20 Thread Daniel Garcia Mejia
I have a question with creating more approbal queues, other than the 
default that comes ('___Approval')


I create a new queue with type 'approval'.

My problem is that when creating a ticket that creates a ticket approval 
in queue '__Aprobbal' when it is approved, the ticket automatically 
switches to 'open'.
In contrast, in another queue 'approbal' that I created, the ticket does 
not go 'open' IS ALWAYSas 'new'.


Why is this?

Thankyou!!

--
...
__
   / /   Daniel García Mejía
 C E / S / C A   Portals i Repositoris
 /_/ Centre de Serveis Científics i Acadèmics de Catalunya

 Gran Capità, 2-4 (Edifici Nexus) - 08034 Barcelona
 T. (NULL) - F.  93 205 6979 - dgar...@cesca.cat
...


RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012


Re: [rt-users] create more approval queues

2011-12-20 Thread sunnavy
Queue ___Approvals has its own special rules, checkout RT::Approval::Rule and
RT::Approval::Rule::Created

best wishes
sunnavy

On 11-12-20 15:52, Daniel Garcia Mejia wrote:
 I have a question with creating more approbal queues, other than the
 default that comes ('___Approval')
 
 I create a new queue with type 'approval'.
 
 My problem is that when creating a ticket that creates a ticket
 approval in queue '__Aprobbal' when it is approved, the ticket
 automatically switches to 'open'.
 In contrast, in another queue 'approbal' that I created, the ticket
 does not go 'open' IS ALWAYSas 'new'.
 
 Why is this?
 
 Thankyou!!
 
 -- 
 ...
 __
/ /   Daniel García Mejía
  C E / S / C A   Portals i Repositoris
  /_/ Centre de Serveis Científics i Acadèmics de Catalunya
 
  Gran Capità, 2-4 (Edifici Nexus) - 08034 Barcelona
  T. (NULL) - F.  93 205 6979 - dgar...@cesca.cat
 ...
 
 
 RT Training Sessions (http://bestpractical.com/services/training.html)
 * Boston  March 5  6, 2012

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012

Re: [rt-users] create more approval queues

2011-12-20 Thread Daniel Garcia Mejia
So, it is possible to have a duplicate copy of queue '__Approval' but 
with another name?




On 20/12/11 15:52, Daniel Garcia Mejia wrote:
I have a question with creating more approbal queues, other than the 
default that comes ('___Approval')


I create a new queue with type 'approval'.

My problem is that when creating a ticket that creates a ticket 
approval in queue '__Aprobbal' when it is approved, the ticket 
automatically switches to 'open'.
In contrast, in another queue 'approbal' that I created, the ticket 
does not go 'open' IS ALWAYSas 'new'.


Why is this?

Thankyou!!





--
...
__
   / /   Daniel García Mejía
 C E / S / C A   Portals i Repositoris
 /_/ Centre de Serveis Científics i Acadèmics de Catalunya

 Gran Capità, 2-4 (Edifici Nexus) - 08034 Barcelona
 T. (NULL) - F.  93 205 6979 - dgar...@cesca.cat
...


RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012


Re: [rt-users] create more approval queues

2011-12-20 Thread sunnavy
Yes, then you need to customize RT::Approval::Rule on your own.

best wishes
sunnavy

On 11-12-20 16:46, Daniel Garcia Mejia wrote:
 So, it is possible to have a duplicate copy of queue '__Approval'
 but with another name?
 
 
 
 On 20/12/11 15:52, Daniel Garcia Mejia wrote:
 I have a question with creating more approbal queues, other than
 the default that comes ('___Approval')
 
 I create a new queue with type 'approval'.
 
 My problem is that when creating a ticket that creates a ticket
 approval in queue '__Aprobbal' when it is approved, the ticket
 automatically switches to 'open'.
 In contrast, in another queue 'approbal' that I created, the
 ticket does not go 'open' IS ALWAYSas 'new'.
 
 Why is this?
 
 Thankyou!!
 
 
 
 
 -- 
 ...
 __
/ /   Daniel García Mejía
  C E / S / C A   Portals i Repositoris
  /_/ Centre de Serveis Científics i Acadèmics de Catalunya
 
  Gran Capità, 2-4 (Edifici Nexus) - 08034 Barcelona
  T. (NULL) - F.  93 205 6979 - dgar...@cesca.cat
 ...
 
 
 RT Training Sessions (http://bestpractical.com/services/training.html)
 * Boston  March 5  6, 2012

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012

Re: [rt-users] create more approval queues

2011-12-20 Thread Thomas Sibley
On 12/20/2011 10:46 AM, Daniel Garcia Mejia wrote:
 So, it is possible to have a duplicate copy of queue '__Approval' but
 with another name?

No, not without some decent hacking on core RT and an understanding of
how approvals work.  To fully emulate the ___Approvals queue, you'd also
need to disable it with the value of 2 in the database.  It's probably
possible nowadays to patch RT to check against the queue lifecycle
rather than the hardcoded queue name, if you wanted to submit a
patch/pull request.

Thomas

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012


Re: [rt-users] create more approval queues

2011-12-20 Thread Daniel Garcia Mejia
So, I have this script that put ticket status from 'new' to 'open' when 
all dependend on by are resolt.

With normal tickets WORKS, but with approbal tickets doesn't work... why ?

The script is:

return 1 if ($self-TransactionObj-NewValue !~ 
/^(?:resolved|deleted|rejected)$/);

  my $DepOnBy = $self-TicketObj-DependedOnBy;
  while( my $l = $DepOnBy-Next ) {
next unless( $l-BaseURI-IsLocal );
next unless( $l-BaseObj-Status =~ /^(?:new|open|stalled)$/ );

# here you can add any action
# see also example below
$l-BaseObj-SetStatus('resolved');
  }
  $DepOnBy = undef;
  return 1;



Thanks for you time

On 20/12/11 16:46, Daniel Garcia Mejia wrote:
So, it is possible to have a duplicate copy of queue '__Approval' but 
with another name?




On 20/12/11 15:52, Daniel Garcia Mejia wrote:
I have a question with creating more approbal queues, other than the 
default that comes ('___Approval')


I create a new queue with type 'approval'.

My problem is that when creating a ticket that creates a ticket 
approval in queue '__Aprobbal' when it is approved, the ticket 
automatically switches to 'open'.
In contrast, in another queue 'approbal' that I created, the ticket 
does not go 'open' IS ALWAYSas 'new'.


Why is this?

Thankyou!!






--
...
__
   / /   Daniel García Mejía
 C E / S / C A   Portals i Repositoris
 /_/ Centre de Serveis Científics i Acadèmics de Catalunya

 Gran Capità, 2-4 (Edifici Nexus) - 08034 Barcelona
 T. (NULL) - F.  93 205 6979 - dgar...@cesca.cat
...


RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

Re: [rt-users] rt 4.0.4 (and possibly others) autocomplete custom field showing values from all other custom fields for non super useraccounts?

2011-12-20 Thread jim . h . berry
I can confirm the custom field autocomplete bug that Jim Lesinski 
describes below.  RT v4.0.4, Linux, Apache.   Firefox browsers on both 
Windows and Linux. 

Slightly off topic: the custom field completion did not work at all (for 
either user) in Internet Explorer 8.  Email completion works as expected.


-- Jim Berry


 - Message from Jim Lesinski jim.lesin...@gmail.com on Mon, 19 Dec 
2011 15:07:09 -0500 
 
 Re: [rt-users] rt 4.0.4 (and possibly others) autocomplete custom 
 field showing values from all other custom fields for non super 
useraccounts?
 
 Hello,
 
 I opened a bug for the issue I described below, but no one else has 
 confirmed that their install is behaving the same way. If someone 
 out there with a test install of rt 4.0.x (preferably 4.0.4) could 
 try the steps outlined below I would really appreciate it. It seems 
 to occur in both of my environments but I wanted to rule out my own 
issues ;).
 
 Ok - From a clean rt 4.0.4
 
 1. Log in as Root account
 2. Create Queue1
 3. Create CustomField1 as Type Select one value with Render Type 
Dropdown
 4. Add values to CustomField1 
 CF1Value1, CF1Value2,CF1Value3, CF1Value4
 5. Create CustomField2 as Type Select one value with Render Type 
Dropdown
 6. Add values to CustomField2 
 CF2Value1, CF2Value2,CF2Value3, CF2Value4
 7. Create CustomField3 as Type Enter one value with Autocompletion
 with Render Type Dropdown
 8. Add values to CustomField3 
 CF3Value1, CF3Value2,CF3Value3, CF3Value4
 9. Assign all of these fields to Queue1
 10. Create a Group called Group1
 11. Grant Group1 all permissions to Queue1 on General Rights and 
 Rights for Staff tab
 12. Create a user named User1
 13. Add User1 to Group1
 14. Create a new ticket in Queue1 as the ROOT account and go to 
 Field CustomField3, Type 'C' and you should get 
 only CF3Value1, CF3Value2,CF3Value3, CF3Value4
 15. Log out, Log back in as User1 and Create a new record in Queue1.
 In CustomField3 Type 'C' and you will see values 
   CF1Value1, CF1Value2,CF1Value3, CF1Value4
   CF2Value1, CF2Value2,CF2Value3, CF2Value4
   CF3Value1, CF3Value2,CF3Value3, CF3Value4
 
 Which are values from all of the custom fields, not just 
the autocomplete
  values specified in CustomField3. I am not sure how that could 
 happen no matter how wacky I made permissions are unless it is a bug.
 
 16. Log out from User1
 17. Log Back into the system as ROOT and grant User1 Do Anything 
 and Everything under Tools - Configuration - Global - User Rights -
 Rights for administrators. Log out.
 18. Log Back into the system as User1 and create a new ticket in 
 Queue1. Go to CustomField3 and type 'C'. You will now have the 
 correct values for the autocomplete field. 
 
 

 On Mon, Dec 12, 2011 at 2:21 PM, Jim Lesinski jim.lesin...@gmail.com 
wrote:
 Hello,
 
 Can someone check to see if an Autocomplete custom field shows 
 values from other custom fields in their RT 4.0.4 installation for 
 non admin users? (By non admin I mean the user does not have 
 Anything and Everything permission in the system.)
 
 When I am logged in as a non admin account and type in an 
 autocomplete field I seem to get all values from all custom fields 
 that meet the text criteria. If I grant this same user account 
 Anything and Everything permission, the correct values are then 
 populated in the autocomplete field. I have tested this on 2 
 different systems and I get the same results from both. Basically it
 seems like the dataset returned for the super user account is 
 different than a non super user account.
 
 Can anyone else recreate this or verify that they have the same or 
 different results?
 
 Thanks,
 Jim
 

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012

[rt-users] Execution of scripts

2011-12-20 Thread Daniel Garcia Mejia

I have a little question:

It is possibly to decide the order of execution of the scripts I have 
created in a queue?


If it possible , how can decide the order ?



Thanks

--
...
__
   / /   Daniel García Mejía
 C E / S / C A   Portals i Repositoris
 /_/ Centre de Serveis Científics i Acadèmics de Catalunya

 Gran Capità, 2-4 (Edifici Nexus) - 08034 Barcelona
 T. (NULL) - F.  93 205 6979 - dgar...@cesca.cat
...


RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5  6, 2012


Re: [rt-users] Execution of scripts

2011-12-20 Thread Kenneth Crocker
Daniel,

RT will auto execute in alphabetical order (on scrip name) for transbatch
scrips. I use 1a thru 1c as a prefix for my global and Queue based
scrips.
When they run in batch, the Custom Fields that are used in my Notify
scrips/Templates are modified first.
That way the info in the templates is updated before the notification is
executed.

Kenn

On Tue, Dec 20, 2011 at 9:05 AM, Daniel Garcia Mejia dgar...@cesca.catwrote:

 I have a little question:

 It is possibly to decide the order of execution of the scripts I have
 created in a queue?

 If it possible , how can decide the order ?



 Thanks

 --
 ..**..**
 ...
__
   / /   Daniel García Mejía
  C E / S / C A   Portals i Repositoris
 /_/ Centre de Serveis Científics i Acadèmics de Catalunya

  Gran Capità, 2-4 (Edifici Nexus) - 08034 Barcelona
  T. (NULL) - F.  93 205 6979 - dgar...@cesca.cat
 ..**..**
 ...

 
 RT Training Sessions 
 (http://bestpractical.com/**services/training.htmlhttp://bestpractical.com/services/training.html
 )
 * Boston  March 5  6, 2012


RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5  6, 2012