View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Projeqtor Database - link between the two tables "activity" and "work" - ProjeQtOr

Prochaines Sessions

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)
 

13 mai 2025 (10h30-12h)

5 juin 2025 (16h-17h30)

 
 

Planifiez avec ProjeQtOr

14 et 15 mai 2025 (9h-12h30)

18 et 19 juin 2025 (9h-12h30)

 
 

Administrez avec ProjeQtOr

20 et 21 mai (9h-12h30)

25 et 26 juin (9h-12h30)

 

 

 

Projeqtor Database - link between the two tables "activity" and "work"

More
17 Avr 2019 09:35 #1 by fradjtc
Hi everybody,

I'm trying to extract the worktime consumed per ressource and per project through this SQL code below, and it works fine.

SELECT r.`fullname`, p.`name`, year(workDate), month(workDate), SUM(w.`work`)
FROM `project` p
JOIN `work` w
ON w.`idProject`= p.`id`
JOIN `resource` r
ON r.`id` = w.`idResource`
WHERE w.`workDate` BETWEEN '2019/01/01' AND '2019/03/31'*/
GROUP BY year(workDate), month(workDate), p.`name`, r.`fullname`

Now what I wish to do, is determine the worktime consumed per activity. The problem is, I couldn't find a link between both tables: activity and work. It's as if the activities in the imputation menu are only for visual purposes, the imputed worktime is actually linked to the whole project, not it's activities.

Thanks in advance for your help.

Please Connexion or Create an account to join the conversation.

More
19 Avr 2019 15:16 #2 by babynus
link is through refType='Activity' and refId=(id of the activity).
Note that you can have some work on tickets with refType='Ticket' and refId=(id of ticket)

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.038 seconds

Paramétrages de cookies

×

Cookies fonctionnels

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Veuillez vous connecter pour voir vos activités!

Autres cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.