You are not logged in.
Pages: 1
We are currently using the Activities plugin to produce detail timesheets for our department through Crystal Reports. I know there is probably cheaper ways to do it, but we already have crystal licences and we have a Crystal resource on board. We also use the project plugin.
I have been asked to create a link through from activities to the Activity plugin. On the add activity entry screen, we would like to see a list of the current project list so that we can report against the projects as well in our timesheets.
I need some help getting the foreign key for the projects plugin into the plugin_activity.form.php?new=1 form.
Many thanks
Jassen
Offline
You can at this time use activity to see in report 'General report of activities of a technician' and see planned tasks of projects for this technicien.
Xavier Caillaud
Blog GLPI Infotel
Offline
I do see that thanks but that is not what we are looking for.
When in activities and adding an activity for the last hour, if that activity was working on a project, which project was it. We would like to select this from a list out of the project plugin of the current projects. With this foreign key in the activity table, we would be able to report on how much time we spent on each project.
Jassen
Offline
Humm
you must use a table for this i think...
DROP TABLE IF EXISTS `glpi_plugin_activity_device`;
CREATE TABLE `glpi_plugin_activity_device` (
`ID` int(11) NOT NULL auto_increment,
`FK_activity` int(11) NOT NULL default '0',
`FK_device` int(11) NOT NULL default '0',
`device_type` int(11) NOT NULL default '0',
PRIMARY KEY (`ID`),
UNIQUE KEY `FK_activity` (`FK_activity`,`FK_device`,`device_type`),
KEY `FK_activity_2` (`FK_activity`),
KEY `FK_device` (`FK_device`,`device_type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
and use the type of the plugin projet for device_type : 2300
And add forms for this.
Xavier Caillaud
Blog GLPI Infotel
Offline
Actually, I have just been testing what you said above and this does not work for me. I go into a project, create a task against my name and it does not appear on that report. when I go into the installations plugin and do the same test, the item does appear.
Jassen
Offline
the task is planned ?
which version of projet ?
Xavier Caillaud
Blog GLPI Infotel
Offline
Yes I tried all the combinations, planned, unplanned, processing, finished. I have the latest version of the project plugin ,but not the latest version of GLPI. I am using version 7 though.
Offline
oups..i must publicate a new version af activity (compatible with 0.8.1 version of project)
Xavier Caillaud
Blog GLPI Infotel
Offline
Ok thanks, i will wait for that release and test it again.
Regards
Jassen
Offline
Xavier Caillaud
Blog GLPI Infotel
Offline
Pages: 1