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

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

More
17 Apr 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 Log in or Create an account to join the conversation.

More
19 Apr 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 Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.026 seconds

Cookies settings

×

Functional Cookies

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

Please login to see yours activities!

Other cookies

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