[rt-users] Change transaction creator

2015-03-25 Thread andriusk
Hello,

I want to change the creator of the transaction, if it is done lets say via
REST, in other words if creator is REST_USER change it to USER_1.

Is that possible? I guess that the Creator is set in RT::Record-Create
method?



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Change-transaction-creator-tp59800.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.


Re: [rt-users] Uploading image to Image CustomField via REST

2015-01-25 Thread andriusk
Bump



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Uploading-image-to-Image-CustomField-via-REST-tp59382p59428.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.


[rt-users] Uploading image to Image CustomField via REST

2015-01-20 Thread andriusk
Is it possible to post image for ticket customfield via rest?



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Uploading-image-to-Image-CustomField-via-REST-tp59382.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.


Re: [rt-users] Can't add multiple attachments on reply

2014-10-03 Thread andriusk
The problem was with the outdated Update.html file in my local/ folder, which
did not had  input name=Token type=hidden line.



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Can-t-add-multiple-attachments-on-reply-tp58683p58719.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training November 4  5 Los Angeles
http://bestpractical.com/training


[rt-users] Can't add multiple attachments on reply

2014-10-02 Thread andriusk
I can't add multiple attachments on reply ticket page. If I try to add
another file, it replaces the one I attached before.

Logs show no unusual errors.



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Can-t-add-multiple-attachments-on-reply-tp58683.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training November 4  5 Los Angeles
http://bestpractical.com/training


Re: [rt-users] Can't add multiple attachments on reply

2014-10-02 Thread andriusk
I click reply on ticket menu.

I click Choose a File

I click Add More Files (the page refresh and I see the file I choosen in
Attached file: with checkbox for deletion)

I click Choose a File (to add another file)

I click Add More Files (the page refresh and I see the file I choosen in
Attached file: with checkbox for deletion, but the old file is gone)



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Can-t-add-multiple-attachments-on-reply-tp58683p58685.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training November 4  5 Los Angeles
http://bestpractical.com/training


Re: [rt-users] Can't add multiple attachments on reply

2014-10-02 Thread andriusk
How can I flush all session data? Truncate sessions table?



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Can-t-add-multiple-attachments-on-reply-tp58683p58687.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training November 4  5 Los Angeles
http://bestpractical.com/training


Re: [rt-users] Can't add multiple attachments on reply

2014-10-02 Thread andriusk
Hmm, no help from this.

I get this not working on reply action, on creation of ticket I can add
multiple files



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Can-t-add-multiple-attachments-on-reply-tp58683p58689.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training November 4  5 Los Angeles
http://bestpractical.com/training


Re: [rt-users] Can't add multiple attachments on reply

2014-10-02 Thread andriusk

What is more, after the file is replaced by the second selected file, the
attachment is not added to the ticket at all



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Can-t-add-multiple-attachments-on-reply-tp58683p58690.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training November 4  5 Los Angeles
http://bestpractical.com/training


Re: [rt-users] Catch all ticket changes in one scrip

2014-09-24 Thread andriusk
Another question.

Are the transactions of changes to a ticket made by web UI (fields 
selected in web ui) and by scrips, that change some other value because 
one of values was changed by UI, assigned to the same TransactionBatch?

2014-09-23 02:24, Alex Peters [via RequestTracker] rašė:

 You have established beyond doubt that the SLA extension is breaking 
 core scrip logic.

 Please file a bug report against the SLA extensionn

 -- 
 RT Training November 4  5 Los Angeles
 http://bestpractical.com/training


 
 If you reply to this email, your message will be added to the 
 discussion below:
 http://requesttracker.8502.n7.nabble.com/Catch-all-ticket-changes-in-one-scrip-tp58372p58599.html
  

 To unsubscribe from Catch all ticket changes in one scrip, click here 
 http://requesttracker.8502.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=58372code=YW5kcml1cy5rdWxiaXNAZ21haWwuY29tfDU4MzcyfDEwMTAwODYxNzU=.
 NAML 
 http://requesttracker.8502.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
  


-- 
Pagarbiai
Andrius Kulbis





--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Catch-all-ticket-changes-in-one-scrip-tp58372p58602.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.-- 
RT Training November 4  5 Los Angeles
http://bestpractical.com/training


Re: [rt-users] Catch all ticket changes in one scrip

2014-09-22 Thread andriusk
I made a new installation. 
This is the log, which I got from changing tickets /*Subject, Status,
Priority and Due*/ on queue */General/* with /*1 scrip in TransactionBatch*/
mode (CustomCondition: 1; Custom action preparation code: 1; Custom action
commit code: 1;), no extensions installed.

[10295] [Mon Sep 22 08:22:46 2014] [debug]: Rendering attachment #1 of
'text/html' type
(/opt/rt4/share/html/Elements/ShowTransactionAttachments:182)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: RT::Date used Time::ParseDate to
make '2014-09-25 00:00:00' 1411628400 (/opt/rt4/sbin/../lib/RT/Date.pm:240)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: About to prepare scrips for
transaction #34 (/opt/rt4/sbin/../lib/RT/Transaction.pm:187)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Found 2 scrips for
TransactionCreate stage with applicable type(s) Set for txn #34 on ticket #1
(/opt/rt4/sbin/../lib/RT/Scrips.pm:495)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Skipping Scrip #11 because it
isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: About to commit scrips for
transaction #34 (/opt/rt4/sbin/../lib/RT/Transaction.pm:210)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Committing scrip #13 on txn #34
of ticket #1 (/opt/rt4/sbin/../lib/RT/Scrips.pm:306)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: About to prepare scrips for
transaction #35 (/opt/rt4/sbin/../lib/RT/Transaction.pm:187)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Found 2 scrips for
TransactionCreate stage with applicable type(s) Set for txn #35 on ticket #1
(/opt/rt4/sbin/../lib/RT/Scrips.pm:495)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Skipping Scrip #11 because it
isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: About to commit scrips for
transaction #35 (/opt/rt4/sbin/../lib/RT/Transaction.pm:210)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Committing scrip #13 on txn #35
of ticket #1 (/opt/rt4/sbin/../lib/RT/Scrips.pm:306)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: About to prepare scrips for
transaction #36 (/opt/rt4/sbin/../lib/RT/Transaction.pm:187)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Found 2 scrips for
TransactionCreate stage with applicable type(s) Set for txn #36 on ticket #1
(/opt/rt4/sbin/../lib/RT/Scrips.pm:495)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Skipping Scrip #11 because it
isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: About to commit scrips for
transaction #36 (/opt/rt4/sbin/../lib/RT/Transaction.pm:210)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Committing scrip #13 on txn #36
of ticket #1 (/opt/rt4/sbin/../lib/RT/Scrips.pm:306)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: About to prepare scrips for
transaction #37 (/opt/rt4/sbin/../lib/RT/Transaction.pm:187)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Found 3 scrips for
TransactionCreate stage with applicable type(s) Status for txn #37 on ticket
#1 (/opt/rt4/sbin/../lib/RT/Scrips.pm:495)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Skipping Scrip #11 because it
isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Skipping Scrip #12 because it
isn't applicable (/opt/rt4/sbin/../lib/RT/Scrips.pm:353)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: About to commit scrips for
transaction #37 (/opt/rt4/sbin/../lib/RT/Transaction.pm:210)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Committing scrip #13 on txn #37
of ticket #1 (/opt/rt4/sbin/../lib/RT/Scrips.pm:306)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: About to prepare scrips for
transaction #38 (/opt/rt4/sbin/../lib/RT/Transaction.pm:187)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Found 2 scrips for
TransactionCreate stage with applicable type(s) Set for txn #38 on ticket #1
(/opt/rt4/sbin/../lib/RT/Scrips.pm:495)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Converting 'utf-8' to 'utf-8'
for text/plain - Subjectless message (/opt/rt4/sbin/../lib/RT/I18N.pm:295)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Converting 'utf-8' to 'utf-8'
for text/html - Subjectless message (/opt/rt4/sbin/../lib/RT/I18N.pm:295)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Encode::Guess guessed encoding:
utf8 (/opt/rt4/sbin/../lib/RT/I18N.pm:574)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Encode::Guess guessed encoding:
utf8 (/opt/rt4/sbin/../lib/RT/I18N.pm:574)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: About to commit scrips for
transaction #38 (/opt/rt4/sbin/../lib/RT/Transaction.pm:210)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Committing scrip #11 on txn #38
of ticket #1 (/opt/rt4/sbin/../lib/RT/Scrips.pm:306)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Calling SetRecipientDigests for
transaction RT::Transaction=HASH(0x7f28f814dcd8), id 38
(/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:623)
[10294] [Mon Sep 22 08:23:03 2014] [debug]: Working on mailfield To;
recipients are  (/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:639)
[10294] [Mon Sep 22 

Re: [rt-users] Catch all ticket changes in one scrip

2014-09-19 Thread andriusk
I would try to explain my situation again.

I want to make AfterAllTicketChanges scrip, which will work in
TransactionBatch mode, and fire after all changes to the ticket was made on
update off any ticket information.

Now, when I change the SLA field, it changes the the Due and the priority of
the ticket accordingly. The problem is that the Due and Priority change
happens after my AfterAllTicketChanges scrip fires.

I understand that the TransactionBatch mode scrips are commited after all
TransactionCreate Scrips are done.

For example:

I change the status and the subject of the ticket in one update. Should the
scrip in batch mode run after both of these changes are done and the
transactions recorded?

Or maybe I understand it wrong ant the scrip in Batch mode run after each
different transaction?

So technicaly should it be like this:




Or like this:


?

Because now I get it working like SCENARIO #1, where in step #2 and step #6,
the values of Due and Priority are different, but the value of the SLA is
the same (the one I changed to) in both steps.

Sorry for the mess in thoughts, I am not native English speaker.



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Catch-all-ticket-changes-in-one-scrip-tp58372p58579.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training November 4  5 Los Angeles
http://bestpractical.com/training


Re: [rt-users] Catch all ticket changes in one scrip

2014-09-19 Thread andriusk


I think that the Due and Priority may be the problem. Here I changed
Subject, Status, Due, Priority (SLA not changed), and still I get separate
TransactionBatch run for each (Subject,Status), (Due), (Priority).
The last two fires two separate Batch Scrip commits.




--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Catch-all-ticket-changes-in-one-scrip-tp58372p58581.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training November 4  5 Los Angeles
http://bestpractical.com/training


Re: [rt-users] Catch all ticket changes in one scrip

2014-09-19 Thread andriusk



There is only one scrip in TransactionBatch mode applied to my test Queue.



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Catch-all-ticket-changes-in-one-scrip-tp58372p58586.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training November 4  5 Los Angeles
http://bestpractical.com/training


Re: [rt-users] Catch all ticket changes in one scrip

2014-09-18 Thread andriusk


The last two transactions is because of SLA was changed and the due and
priority  must be changed accordingly.  

How can I get my scrip run after these two last transactions, because now it
is ran first (Found 1 scrips for TransactionBatch stage with applicable
type(s) Status,Set,SetWatcher,CustomField). This is a real headache form
me...



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Catch-all-ticket-changes-in-one-scrip-tp58372p58567.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training November 4  5 Los Angeles
http://bestpractical.com/training


Re: [rt-users] Catch all ticket changes in one scrip

2014-09-16 Thread andriusk
How should I make my TransactionBatch scrip run after all changes inducing
scrip? Is it enought if it is the only scrip in batch mode? Because now I
get this batch scrip run after every different type transaction (3 changes -
status, subject, customfield - 3 times ran scrip in batch mode. Also I dont
think that checking TicketObj-RanTransactionBatch is correct to determine
if the scrip done its job in scrip with batch mode?



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Catch-all-ticket-changes-in-one-scrip-tp58372p58557.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training


[rt-users] Removing ticket links

2014-09-10 Thread andriusk
Hello,

How can I remove the links ticket is parent of? I do not need to remove the
linked tickets but the link itself/
Is that possible?



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Removing-ticket-links-tp58484.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training


[rt-users] using RT components in console script

2014-09-05 Thread andriusk
I am trying to make a console script, which will get the hash of params form
RT_SiteConfig.pm, and then call a mason component (component forms a pdf
report and send it by mail). This script should be run by cron.

I don't know how to include RT components correctly. While looking at
rt-crontool, I made this:

While trying to run this ./console I get:


What is the corrent way of using RT components in perl console script?






--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/using-RT-components-in-console-script-tp58458.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training


[rt-users] Compile /Search/Chart not working

2014-08-25 Thread andriusk
Hello, 

I want to compile the chart GD::Image for latter use like this: 

my $chart = $m-comp('/Search/Chart', Query = $Query, Console = 1, %ARGS); 


And modified code in /Search/Chart like this: 

%METHOD Plot 
%ARGS 
$plot = undef 
$Console = 0 
/%ARGS
%INIT 
my @types = ('png', 'gif'); 

RT::Logger-debug($Console); 
for my $type (@types) { 
$plot-can($type) 
or next; 

if($Console) { 
return $plot; 
} else { 
$r-content_type(image/$type); 
$m-out( $plot-$type ); 
$m-abort(); 
} 
} 

die Your GD library appears to support none of the following image types: 
. join(', ', @types); 
/%INIT

/%METHOD

I thought that it will return me the GD::Image instance of $plot on
$m-comp(), but I get undefined. 
How can I get the the $plot object from /Search/Chart script? 

Regards 



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Compile-Search-Chart-not-working-tp58393.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training


[rt-users] Catch all ticket changes in one scrip

2014-08-22 Thread andriusk
Hello,

I'm trying to figure out, how can I catch all the changes made to ticket
fields in one scrip.
It would be like OnUpdateTicket script, which will gather all the changes
made, and sync them with DB outside trought REST.

Is there any solution, or maybe code example doing all of that in RT itself
(github)?

I do not want a scrip to send every changed field in separate requests. Is
it possible?



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Catch-all-ticket-changes-in-one-scrip-tp58372.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training


[rt-users] Exporting Dashboard

2014-08-13 Thread andriusk
Hello,

Is there any way or solution, or maybe someone done it already for
themselves for exporting dashboard. 
What I am looking for is like Subscription, where dashboard is send by
email, just I want to save it to file (pdf, word, or at least html).

How that can be archieved?

Regards



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Exporting-Dashboard-tp58314.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training


[rt-users] Combobox not rendered and working correctly

2014-07-18 Thread andriusk
Hello, 

In my bulk update page, the Combobox type CF are not rendered correctly.
Also if I choose the value in badly rendered field and try to update it,
nothing happens.

http://requesttracker.8502.n7.nabble.com/file/n57971/error.png 



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Combobox-not-rendered-and-working-correctly-tp57971.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training


[rt-users] JSON data from chart query

2014-07-16 Thread andriusk
Hello,

How can I get data in JSON format from REST or other way using the query
used to form the chart?

Regards



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/JSON-data-from-chart-query-tp57936.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training


[rt-users] Exporting charts

2014-07-09 Thread andriusk
Hello 

Is there any way to export charts or chart data from RT in excel, pdf, or
maybe json for data?

Or how to get Json data, used in charts using the query string displayed
below the chart?

Regards



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Exporting-charts-tp57886.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training


[rt-users] Cancel all scrips on custom resolve

2014-06-27 Thread andriusk
Hello, I want to create a custom resolve action  - silent resolve. Is it
possible somehow to tell RT that, if I resolve ticket using my silent
resolve it cancel all script, that fires on resolve or at least those that
send email to the user and CC?



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Cancel-all-scrips-on-custom-resolve-tp57780.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
-- 
RT Training - Boston, September 9-10
http://bestpractical.com/training