New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feaure / Ticket: Time tracking #1419

Closed
wants to merge 0 commits into
base: develop-next
from

Conversation

Projects
None yet
@robintoy
Copy link

robintoy commented Oct 22, 2014

Time Tracking Mod / Change

Updated: 22/06/2016

Re-written and complete Time Tracking enhancement.
Requires Version v1.10-rc3

This enhancement allows you to enable functions for adding just time to a ticket or enable functions to allow adding time to the thread of the ticket along with the type of time spent.

The time types are a custom list that can be modified to your business requirements giving your full billing and reporting abilities.

To Do List

MOVE TO NEW PULL Request

Pictures

New pictures to come

MOD Install Instructions

Base file install

To be updated

Database upgrade (SQL commends)

Run the following commands in something like PHPMyAdmin or MySQL CLI
To be updated

News

22/06/2016

The old v1.9.14 code has now been moved to a zip file with full instruction to our website https://www.strobe-it.co.uk/services/opensource/
The code on this page will now be updated to v1.10.x to keep inline with the development process of osTicket

@robintoy

This comment has been minimized.

Copy link

robintoy commented Oct 22, 2014

Original version looked promising but this is a complete re-write with all feedback taken into account
#1358

@robintoy

This comment has been minimized.

Copy link

robintoy commented Oct 22, 2014

Note for anyone testing / wanting this enhancement

The SQL for the database changes currently need to be done manually using something like PHPMyAdmin as theya re not integrated into the upgrade or installer code yet.

SQL details can be found in the following place: -
osTicket-1.8\include\upgrader\streams\core\unknown.patch.sql
see instructions in first comment

@Chefkeks

This comment has been minimized.

Copy link
Contributor

Chefkeks commented Oct 22, 2014

Looks good so far. Have not tested it yet, but I think this would be a perfect enhancement for the ticket thread actions (see #1381).

Despite that, would be great to have also a custom list with the times, so you can e.g. easily select them from a dropdown list ;)

@robintoy

This comment has been minimized.

Copy link

robintoy commented Oct 22, 2014

It's funny really as me and @greezybacon have been talking about how to possibly making this a plugin some how but the system currently does not support it.

But I think this might be better as a feature / enhancement still as so many people seem to need or want it and also gives us a base to look at the dashboard and look at placing a better time record on there.

@robintoy

This comment has been minimized.

Copy link

robintoy commented Oct 22, 2014

Hi @Chefkeks,
if a drop down is preference for the time amount this can easily be changed to use a custom list in the same way that the type of time is done. Having a quick think about it I'd still store the time in decimal format as this is much easier and not hard to convert.

@robintoy

This comment has been minimized.

Copy link

robintoy commented Oct 24, 2014

@greezybacon I have been looking at the custom lists and changing the time field to be a drop down instead of a text box.

The problem I was looking to do is have a nice display in the list like "1 hour" and have a value of "1", or say "15 minutes" with "0.25" meaning the current math and storage works perfectly; but it looks like the value is also the description seen in the list.

Is there a way around this?

@bararchy

This comment has been minimized.

Copy link

bararchy commented Dec 7, 2014

Hi @robintoy ,

This is a very cool and useful addition, and , something we at our company have been looking to implement with another Time Tracking system, I'll be glad to see thing pulled into the main code base.

Also,
Do you have a "guide" of sort to adding this to current version ?

Thanks,

@robintoy

This comment has been minimized.

Copy link

robintoy commented Dec 8, 2014

Hi @bararchy ,
Let me zip of all the required files and write a guide then you can install and let me know what you think.

I'd love the mod to be included in the main code as most people seem to like it or want it, the developer @greezybacon has taken some interest in this but nothing concrete yet.

@robintoy

This comment has been minimized.

Copy link

robintoy commented Dec 8, 2014

Please see comment at start of feed for install

Hi @bararchy ,
just tried to upload a zip file to here but don't seem to be able to so here is a quick way for you...

  1. Sync this branch to you GitHub
  2. copy the following files to you install (Please backup your system first): -
  3. include\class.config.php
  4. include\class.list.php
  5. include\class.nav.php
  6. include\thread.php
  7. include\class.ticket.php
  8. include\client\view.inc.php
  9. include\staff\settings-tickettime.inc.php
  10. include\staff\ticket-view.inc.php
  11. scp\settings.php
  12. scp\tickets.php
  13. Run the following commands in MySQL: - (Please backup your DB first)
    INSERT INTO %TABLE_PREFIX%list (name, name_plural, sort_mode, masks, type, notes, created, updated)
    VALUES ('Time Type', 'Time Types', 'SortCol', '13', 'time-type', 'Time Spent plugin list, do not modify', NOW(), NOW())

BEGIN
SET @listitem_list_id = (SELECT id FROM %TABLE_PREFIX%list WHERE name='Time Type')

INSERT INTO `%TABLE_PREFIX%time_type` (`list_id`, `status`, `value`, `sort`) VALUES
(@listitem_list_id, 1, 'Telephone', 1),
(@listitem_list_id, 1, 'Email', 2),
(@listitem_list_id, 1, 'Remote', 3),
(@listitem_list_id, 1, 'Workshop', 4),
(@listitem_list_id, 1, 'Onsite', 5)

END

INSERT INTO %TABLE_PREFIX%config (namespace, key, value, updated) VALUES
('core', 'isclienttime', 0, now()),
('core', 'istickettime', 0, now()),
('core', 'isthreadtime', 0, now())

ALTER TABLE %TABLE_PREFIX%ticket ADD COLUMN time_spent FLOAT(4,2) NOT NULL DEFAULT '0.00' AFTER closed

ALTER TABLE %TABLE_PREFIX%ticket_thread ADD COLUMN time_spent FLOAT(4,2) NOT NULL DEFAULT '0.00' AFTER thread_type

ALTER TABLE %TABLE_PREFIX%ticket_thread ADD COLUMN time_type INT( 11 ) UNSIGNED NOT NULL DEFAULT '0' AFTER time_spent

  1. Enjoy, test and comment back!

Hope this helps?

@bararchy

This comment has been minimized.

Copy link

bararchy commented Dec 9, 2014

So..
I used those commands for the upgrade:

wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/include/class.config.php -O /var/www/include/class.config.php
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/include/class.list.php -O /var/www/include/class.list.php
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/include/class.nav.php -O /var/www/include/class.nav.php
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/include/thread.php -O /var/www/include/thread.php
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/include/class.ticket.php -O /var/www/include/class.ticket.php
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/include/client/view.inc.php -O /var/www/include/client/view.inc.php
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/include/staff/settings-tickettime.inc.php -O /var/www/include/staff/settings-tickettime.inc.php
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/include/staff/ticket-view.inc.php -O /var/www/include/staff/ticket-view.inc.php
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/scp/settings.php -O /var/www/scp/settings.php
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/scp/tickets.php -O /var/www/scp/tickets.php

Other then that, I got a few Mysql errors when running you commands... should they be in a sql script or something ?

@robintoy

This comment has been minimized.

Copy link

robintoy commented Dec 9, 2014

Hi @bararchy ,

the SQL is written in a patch format which can be downloaded here: -
include\upgrader\streams\core\Unknown.patch.sql

but this currently does not run as not in the upgrader process, the code I provided was just the required lines from that but will require a few mods to change the table name prefix instead of %TABLE_PREFIX% (default is "OST_")

@bararchy

This comment has been minimized.

Copy link

bararchy commented Dec 9, 2014

Lets begin in saying me and MySQL are not friends ;) , now after we established that fact I can do basic commands etc...
step 1) I have backed up all my DB and /var/www tha tincludes the ticketos.
step 2) I have applied the patches from your repo using wget
step 3) I have changed all the %TABLE_PREFIX% to my "ost_".
this is the SQL commands I use now:

use ticket;
INSERT INTO ost_list (name, name_plural, sort_mode, masks, type, notes, created, updated) VALUES ('Time Type', 'Time Types', 'SortCol', '13', 'time-type', 'Time Spent plugin list, do not modify', NOW(), NOW());

BEGIN
SET @listitem_list_id = (SELECT id FROM ost_list WHERE name='Time Type');

INSERT INTO `ost_time_type` (`list_id`, `status`, `value`, `sort`) VALUES(@listitem_list_id, 1, 'Telephone', 1),(@listitem_list_id, 1, 'Email', 2),(@listitem_list_id, 1, 'Remote', 3),(@listitem_list_id, 1, 'Workshop', 4),(@listitem_list_id, 1, 'Onsite', 5);
END

INSERT INTO ost_config (namespace, key, value, updated) VALUES('core', 'isclienttime', 0, now()),('core', 'istickettime', 0, now()),('core', 'isthreadtime', 0, now());

ALTER TABLE ost_ticket ADD COLUMN time_spent FLOAT(4,2) NOT NULL DEFAULT '0.00' AFTER closed;

ALTER TABLE ost_ticket_thread ADD COLUMN time_spent FLOAT(4,2) NOT NULL DEFAULT '0.00' AFTER thread_type;

ALTER TABLE ost_ticket_thread ADD COLUMN time_type INT( 11 ) UNSIGNED NOT NULL DEFAULT '0' AFTER time_spent;

I'm getting this error:

BEGIN SET @listitem_list_id = (SELECT id FROM ost_list WHERE name='Time Type')  Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SET @listitem_list_id = (SELECT id FROM ost_list WHERE name='Time Type')' at line 2    0.0026 sec
@robintoy

This comment has been minimized.

Copy link

robintoy commented Dec 9, 2014

Here is an exact copy of the code from the sql file (have place ost_ in for you): -

BEGIN
    SET @listitem_list_id = (SELECT id FROM `ost_list` WHERE `name`='Time Type')$
    INSERT INTO `ost_time_type` (`list_id`, `status`, `value`, `sort`) VALUES
    (@listitem_list_id, 1, 'Telephone', 1),
    (@listitem_list_id, 1, 'Email', 2),
    (@listitem_list_id, 1, 'Remote', 3),
    (@listitem_list_id, 1, 'Workshop', 4),
    (@listitem_list_id, 1, 'Onsite', 5)$
END$

hopefully this works else we shall have to find the list id using one query and then run each line as a different query. Not the end of the world but doable.

Please try above first.

@bararchy

This comment has been minimized.

Copy link

bararchy commented Dec 9, 2014

Sadly, No luck:

Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SET @listitem_list_id = (SELECT id FROM ost_list WHERE name='Time Type')$ INSERT' at line 2    0.0025 sec 

P.S
Thanks for helping me out :)

@robintoy

This comment has been minimized.

Copy link

robintoy commented Dec 9, 2014

OK,

no worries, lets do the following: -

To find the required list nymber

SELECT id FROM `ost_list` WHERE `name`='Time Type';

Run the following, but first replace the %%VAR%% with the answer of the first query: -

INSERT INTO `ost_time_type` (`list_id`, `status`, `value`, `sort`) VALUES
    (%%VAR%%, 1, 'Telephone', 1),
    (%%VAR%%, 1, 'Email', 2),
    (%%VAR%%, 1, 'Remote', 3),
    (%%VAR%%, 1, 'Workshop', 4),
    (%%VAR%%, 1, 'Onsite', 5);

this should solve the problem for you. Sorry for the delay in getting this sorted, I keep forgetting osTicket has its own SQL scripting which is what I wrote this in.

@robintoy robintoy closed this Dec 9, 2014

@robintoy robintoy reopened this Dec 9, 2014

@bararchy

This comment has been minimized.

Copy link

bararchy commented Dec 9, 2014

hm... apparently the ost_time_type table isn't there:

12:30:34    INSERT INTO `ost_time_type` (`list_id`, `status`, `value`, `sort`) VALUES     (2, 1, 'Telephone', 1),     (2, 1, 'Email', 2),     (2, 1, 'Remote', 3),     (2, 1, 'Workshop', 4),     (2, 1, 'Onsite', 5)   Error Code: 1146. Table 'ticket.ost_time_type' doesn't exist    0.0032 sec

I created it, but another issue has been created:

12:36:11    `list_id`, `status`, `value`, `sort`    Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`list_id`, `status`, `value`, `sort`' at line 1    0.0032 sec
@bararchy

This comment has been minimized.

Copy link

bararchy commented Dec 9, 2014

Also, SELECT id FROM ost_list WHERE name='Time Type'; seems to return multiple id's
selection_001

@robintoy

This comment has been minimized.

Copy link

robintoy commented Dec 9, 2014

mmmm,
OK, a complete list of commands to run are: -

INSERT INTO  ost_list  ( name ,  name_plural ,  sort_mode ,  masks ,  type ,  notes ,  created ,  updated ) VALUES ('Time Type', 'Time Types', 'SortCol', '13', 'time-type', 'Time Spent plugin list, do not modify', NOW(), NOW());
SELECT id FROM `ost_list` WHERE `name`='Time Type';
INSERT INTO `ost_list_items` (`list_id`, `status`, `value`, `sort`) VALUES
    (%%VAR%%, 1, 'Telephone', 1),
    (%%VAR%%, 1, 'Email', 2),
    (%%VAR%%, 1, 'Remote', 3),
    (%%VAR%%, 1, 'Workshop', 4),
    (%%VAR%%, 1, 'Onsite', 5);
INSERT INTO  ost_config  ( namespace ,  key ,  value ,  updated ) VALUES
 ('core', 'isclienttime', 0, now()),
 ('core', 'istickettime', 0, now()),
 ('core', 'isthreadtime', 0, now());
ALTER TABLE  ost_ticket  ADD COLUMN  time_spent  FLOAT(4,2) NOT NULL DEFAULT '0.00' AFTER  closed;
ALTER TABLE  ost_ticket_thread  ADD COLUMN  time_spent  FLOAT(4,2) NOT NULL DEFAULT '0.00' AFTER  thread_type;
ALTER TABLE  ost_ticket_thread  ADD COLUMN  time_type  INT( 11 ) UNSIGNED NOT NULL DEFAULT '0' AFTER  time_spent;

The above should work fine now, problem is I noticed I have not updated the patch.sql file correctly and still was referencing a table no longer used as the functions are already included in list items table instead.

@robintoy

This comment has been minimized.

Copy link

robintoy commented Dec 9, 2014

The reason you have multiple results are because you have created the record multiple times. best to delete all but one reference of it.

@bararchy

This comment has been minimized.

Copy link

bararchy commented Dec 9, 2014

Working :)

Using this:

use ticket;

INSERT INTO  ost_list  ( name ,  name_plural ,  sort_mode ,  masks ,  type ,  notes ,  created ,  updated ) VALUES ('Time Type', 'Time Types', 'SortCol', '13', 'time-type', 'Time Spent plugin list, do not modify', NOW(), NOW());

SELECT id FROM `ost_list` WHERE `name`='Time Type';

INSERT INTO `ost_list_items` (`list_id`, `status`, `value`, `sort`) VALUES
    (1, 1, 'Telephone', 1),
    (1, 1, 'Email', 2),
    (1, 1, 'Remote', 3),
    (1, 1, 'Workshop', 4),
    (1, 1, 'Onsite', 5);

INSERT INTO  ost_config  (`namespace`, `key`, `value`, `updated`) VALUES
 ('core', 'isclienttime', 0, now()),
 ('core', 'istickettime', 0, now()),
 ('core', 'isthreadtime', 0, now());

ALTER TABLE  ost_ticket  ADD COLUMN  time_spent  FLOAT(4,2) NOT NULL DEFAULT '0.00' AFTER  closed;
ALTER TABLE  ost_ticket_thread  ADD COLUMN  time_spent  FLOAT(4,2) NOT NULL DEFAULT '0.00' AFTER  thread_type;
ALTER TABLE  ost_ticket_thread  ADD COLUMN  time_type  INT( 11 ) UNSIGNED NOT NULL DEFAULT '0' AFTER  time_spent;

I'll create a bash script to automate the process, thanks !

@robintoy

This comment has been minimized.

Copy link

robintoy commented Dec 9, 2014

Glad to hear it has worked, will love to hear the feedback of how you get on with it.

@bararchy

This comment has been minimized.

Copy link

bararchy commented Dec 9, 2014

So, A very basic, very straight forward "upgrader"

#!/bin/bash

# Get some info from user
echo "Please enter OSticket dir ('/var/www/osticket' for example): "
read OSTICKET_DIR
echo "Please enter DB User: "
read DB_USER
echo "Please enter DB Password: "
read -s DB_PASSWORD
echo "Please enter DB name: "
read DB_NAME
echo "Please enter DB perfix ('ost_' for example)"
read DB_PERFIX
echo "Would you like to backup your current DB and OSTICKET site ? ('y','n'): "
read TO_BACKUP
if [ TO_BACKUP = 'y' ]
then
    echo "Please enter path to Backup (/tmp/ for example)"
    read BACKUP_PATH
    echo "Starting Backup..."
    rsync -r $OSTICKET_DIR $BACKUP_PATH
    mysqldump $DB_NAME -u $DB_USER -p$DB_PASSWORD > $BACKUP_PATH/ticket_backup.sql 
    echo "Make sure both osticket site, and osticket DB are inside the path: $BACKUP_PATH, if not, close the script now and do a manual backup"
    echo "Waiting for 20 sec for you to check before continuing..."
    sleep 20
fi

echo "Upgrading site"
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/include/class.config.php -O $OSTICKET_DIR/include/class.config.php
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/include/class.list.php -O $OSTICKET_DIR/include/class.list.php
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/include/class.nav.php -O $OSTICKET_DIR/include/class.nav.php
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/include/thread.php -O $OSTICKET_DIR/include/thread.php
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/include/class.ticket.php -O $OSTICKET_DIR/include/class.ticket.php
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/include/client/view.inc.php -O $OSTICKET_DIR/include/client/view.inc.php
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/include/staff/settings-tickettime.inc.php -O $OSTICKET_DIR/include/staff/settings-tickettime.inc.php
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/include/staff/ticket-view.inc.php -O $OSTICKET_DIR/include/staff/ticket-view.inc.php
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/scp/settings.php -O $OSTICKET_DIR/scp/settings.php
wget https://raw.githubusercontent.com/StrobeTechnologiesLtd/osTicket-1.8/TimeTracking/scp/tickets.php -O $OSTICKET_DIR/scp/tickets.php

echo "Upgrade of the site ended, upgrading DB"

mysql -u $DB_USER -p$DB_PASSWORD -e <<'EOF'
use $DB_NAME;
INSERT INTO  $DB_PERFIXlist  ( name ,  name_plural ,  sort_mode ,  masks ,  type ,  notes ,  created ,  updated ) VALUES ('Time Type', 'Time Types', 'SortCol', '13', 'time-type', 'Time Spent plugin list, do not modify', NOW(), NOW());
SELECT id FROM `$DB_PERFIXlist` WHERE `name`='Time Type';
INSERT INTO `$DB_PERFIXlistitems` (`list_id`, `status`, `value`, `sort`) VALUES
    (1, 1, 'Telephone', 1),
    (1, 1, 'Email', 2),
    (1, 1, 'Remote', 3),
    (1, 1, 'Workshop', 4),
    (1, 1, 'Onsite', 5);
INSERT INTO  $DB_PERFIXconfig  (`namespace`, `key`, `value`, `updated`) VALUES
 ('core', 'isclienttime', 0, now()),
 ('core', 'istickettime', 0, now()),
 ('core', 'isthreadtime', 0, now());
ALTER TABLE  $DB_PERFIXticket  ADD COLUMN  time_spent  FLOAT(4,2) NOT NULL DEFAULT '0.00' AFTER  closed;
ALTER TABLE  $DB_PERFIXticket_thread  ADD COLUMN  time_spent  FLOAT(4,2) NOT NULL DEFAULT '0.00' AFTER  thread_type;
ALTER TABLE  $DB_PERFIXticket_thread  ADD COLUMN  time_type  INT( 11 ) UNSIGNED NOT NULL DEFAULT '0' AFTER  time_spent;
EOF

echo "Done, please restart your web server."
@protich

This comment has been minimized.

Copy link
Member

protich commented Dec 9, 2014

Between - this a horrible way to manage customization. No way we'll pull the changes to the core osTicket as implemented. Any upgrades will wipe out your changes.

To me it seems like this should be in mod section of osTicket forum.

@robintoy

This comment has been minimized.

Copy link

robintoy commented Dec 9, 2014

Hi @protich ,

Please ignore the current script used to allow @bararchy to test the system, this is just a hash way of getting it installed and tested for other users for the moment.

Other than the current install method what is wrong with the system, lots of people have written things similar and would like this feature; so makes sense to include by default does it not? This is why I did program a way to turn it on and off as required.

After spending much time speaking with @greezybacon we have found that the current osTicket does not support such changes via a mod so the only way to have this would be to have it included in the core system.

It would be great to work with you guys on making improvements like this for osTicket making it the best system to use.

@protich

This comment has been minimized.

Copy link
Member

protich commented Dec 9, 2014

@robintoy - I agree, time tracking is something we plan on supporting. I just wanted others to understand the mod, as implemented, will be wiped out on upgrade. Jared will touch base with you on ideas we have on how to best implement time tracking.

@greezybacon

This comment has been minimized.

Copy link
Member

greezybacon commented Dec 16, 2014

@robintoy would you have some time in the next weeks to connect and discuss this feature for osTicket?

@robintoy

This comment has been minimized.

Copy link

robintoy commented Dec 17, 2014

Hi @greezybacon I can spend some time indeed. I'm not sure what method you want to use to connect but I'm sure you have some good ideas.

@robintoy

This comment has been minimized.

Copy link

robintoy commented Sep 9, 2016

Hi @rmontagud
the idea behind this is exact that.

Just because the time spent working on the ticket might not be billable it gives you a reference point to how much time engineers are spending on each ticket.

If you do not want this to be the case in the options you can disable the auto starting timer which then means you will have to rely on engineers starting this once they start work.

Hopefully this helps?

@rmontagud

This comment has been minimized.

Copy link

rmontagud commented Sep 9, 2016

We just want our engineers to log billable hours, which is 80% of the time but also avoid logging incorrect time spent on an issue because in our case open window with a ticket != time spent on it

btw i've seen where the timer starts so it won't be an issue to comment that line

@robintoy

This comment has been minimized.

Copy link

robintoy commented Sep 9, 2016

Hi @rmontagud

I understand you issue, that is why in the configuration of the system you have options to disable and enable all options without having to edit the code to which I hope you do not go down this route.

To get the system as you want it you can either: -

Disable Auto Start on timer

OR

Configure Time to not be billable by default.

  1. To do this simply login as an admin
  2. Go to the admin panel
  3. Go to Ticket Time Settings
  4. Configure as you wish
@StefanK84

This comment has been minimized.

Copy link

StefanK84 commented Sep 14, 2016

Hi there,

i installed the mod for 1.9.14 and everything seems to be working except;
-when i run a "billing" report for an organization, it doesn't give any billable tickets while i know there should be atleast 1
-can i run a billing report for all organizations at once for the past month?

Thanks in advance!

@robintoy

This comment has been minimized.

Copy link

robintoy commented Sep 14, 2016

Hi @StefanK84

I'm glad to hear all is working well.

Unfortunately we are aware of an issue with either PHP or MySQL versions that do not like the date comparison check meaning this does not always work.

In v1.9.14 there is no way of running this report for all businesses, but this is something we are looking at for V1.1X, at the moment we are looking at a complete billing structure change as the current way of doing it is way too limited and does not lend to future requirements; meaning the version for V1.1X currently only records time.

@alexdel35

This comment has been minimized.

Copy link

alexdel35 commented Sep 30, 2016

Hello guys,

I followed this topic from a while now. I wanted to integrate the time tracking system developped which looks like very nice in our osTicket V1.10RC2. I upgraded the RC2 to RC3 and I was waiting for the release for the RC3 and if I well understood, it is possible, but I have to modified the core files. I am able to do it, but before making any change, I would like to now if it will block the future upgrade to the V.1.1X version?

@ITRevolutionSupport

This comment has been minimized.

Copy link

ITRevolutionSupport commented Oct 2, 2016

hello @robintoy
Great help I need.
It works nicely to end the month with a company preparing a report ot Time does not add up to ending .
month_report

@ITRevolutionSupport

This comment has been minimized.

Copy link

ITRevolutionSupport commented Oct 2, 2016

There is another problem is a is :)))
duplicate_comment

@robintoy

This comment has been minimized.

Copy link

robintoy commented Oct 3, 2016

Hi @norbertooka

The system was not designed to add up the time for the end of the month in this version.

The base system has been updated and currently being improved for version v1.10 / v1.11, and as part of this so far the billing part has been removed and is being redesigned completely as it will not work in the current setup.

@robintoy

This comment has been minimized.

Copy link

robintoy commented Oct 3, 2016

Hi @alexdel35

there is a version of this for V1.10-RC3 which has a different pull request etc, but this still involves modifying files and DB structure for it to work. I'm hoping that the Team list it for inclusion for maybe v1.11

@alexdel35

This comment has been minimized.

Copy link

alexdel35 commented Oct 3, 2016

Thanks for you answer @robintoy but you do not replied me regarding the upgrade to V1.11. I am sure that they will implement your Time tracking in future release, but I just want to know if I modify the DB structure and the files if I will be able to make the upgrade without rollback the changes I made.

@robintoy

This comment has been minimized.

Copy link

robintoy commented Oct 3, 2016

Hi @alexdel35
sorry I did not answer it correctly.

If you install the patch and DB in V1.9.14 or below and upgrade to V1.10.X then current DB changes and stored data is removed. Another member on the thread of V1.10.X has spotted this and already coded a solution for upgrades to which I'm waiting for the code to add in etc

On the file front, as this mod alters core files, every new release made I have to modify the code and re-mod it for everyone to download and re-mod their systems.

I hope this answers better?

@alexdel35

This comment has been minimized.

Copy link

alexdel35 commented Oct 4, 2016

Hello @robintoy thanks for your answer.
You made a great job, but I will wait for the next production version and the next version of your mod to install it. I am currently working on 1.10RC2 and I am testing the RC3.

@adbalme

This comment has been minimized.

Copy link

adbalme commented Oct 24, 2016

Hi,

I installed this great mod (TimeTracking) i have discovered on this thread : http://osticket.com/forum/discussion/78064/time-spent-manual-mod/p2

So i downloaded from here : https://www.strobe-it.co.uk/services/opensource/ but iam confused with the notice. However i saved my files first then erased with the downloaded and i run the commands through phpmyadmin. Everything seems to be updated because i can see in the "list" :

http://image.noelshack.com/fichiers/2016/43/1477291459-1.png

But... i dont understand how it works ? Whats the next steps ? I tried to create a new bill but when i log in as technician i have no "cell" talking about timespent.

Hope you could understand, sorry for my eng. Thx you.

P.S : my osticket version : 1.9.14

@robintoy

This comment has been minimized.

Copy link

robintoy commented Oct 24, 2016

Hi @adbalme
Looks like from picture you have run the SQL correctly.
To enable the features you have to navigate to the admin panel and enable the features, then your engineers will be able to add time to tickets.

@adbalme

This comment has been minimized.

Copy link

adbalme commented Oct 24, 2016

@robintoy

Thx for fast reply ! And here is my problem : how can i enable this features ? Look like idiot... sorry but i m stuck on this part.

@robintoy

This comment has been minimized.

Copy link

robintoy commented Oct 24, 2016

@adbalme

  1. Login as an admin
  2. Top right corner click on admin panel
  3. Hover over tickets and select Ticket Time
  4. Chose options that are right for your business
@adbalme

This comment has been minimized.

Copy link

adbalme commented Oct 24, 2016

@robintoy

Hmm i got a problem. I dont have this submenu (sorry its in french,) :

http://image.noelshack.com/fichiers/2016/43/1477296473-2.png

@ITRevolutionSupport

This comment has been minimized.

Copy link

ITRevolutionSupport commented Nov 5, 2016

Hello @robintoy
OsticketV10 final not worked osTicket v1.9.14 TimeTracking Final?
Please check manny thx
Best Regards Norrbert

@robintoy

This comment has been minimized.

Copy link

robintoy commented Nov 5, 2016

Hi @norbertooka
We have a osTicket v1.10rc3 version listed on our website, but not a final v1.10 yet. Due to speed and this not being added we have moved our helpdesk to Comodo One MSP which is based on v1.9
X with a different time mod and materials billing already done. It's not as clean as our version and will see of we can update this for all.

@ITRevolutionSupport

This comment has been minimized.

Copy link

ITRevolutionSupport commented Nov 5, 2016

It is expected to improve? @robintoy

@ITRevolutionSupport

This comment has been minimized.

Copy link

ITRevolutionSupport commented Nov 15, 2016

@robintoy Check v.1.10 final worked?

@ITRevolutionSupport

This comment has been minimized.

Copy link

ITRevolutionSupport commented Nov 15, 2016

kepernyofoto 2016-11-15 - 20 48 34

@ITRevolutionSupport

This comment has been minimized.

Copy link

ITRevolutionSupport commented Nov 15, 2016

And osticket login screen only white windows / screen
Please help

@robintoy

This comment has been minimized.

Copy link

robintoy commented Nov 16, 2016

Hi @norbertooka
Have you checked out #3231

@ITRevolutionSupport

This comment has been minimized.

Copy link

ITRevolutionSupport commented Nov 16, 2016

@robintoy
This Final Version:

osTicket Core, v1.10
Latest Stable Release, Released November, 1st, 2016
sha256sum 68ff411693802e154426d9ec9b2365ff524aad5f6e52ad9422f073ae48e3a46d
Development Repo Release Notes

@ITRevolutionSupport

This comment has been minimized.

Copy link

ITRevolutionSupport commented Nov 28, 2016

Hello @robintoy

Unfortunately I can not stand and updated system.Manny hours of work to become invisible. What to do?

@robintoy

This comment has been minimized.

Copy link

robintoy commented Nov 28, 2016

Hi @norbertooka
You want to check out the following pull request
#3231

I'll write an update in there for you

@ITRevolutionSupport

This comment has been minimized.

Copy link

ITRevolutionSupport commented Nov 28, 2016

hi @robintoy

A Christmas gift would be beautiful :))
while not yet ready bill :)

@devgnu9

This comment has been minimized.

Copy link

devgnu9 commented May 8, 2017

I would like to put that information on a csv file, can you tell me how make it possible please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment