Page 1 of 1

Get all parent project

Posted: 07 Feb 2011, 12:15
by mhonmon23
Hi,

Is there any function from the api which I can get all the Parent Projects?
If yes please let me know and if no how about in DB?

Thanks

Re: Get all parent project

Posted: 07 Feb 2011, 12:42
by mhonmon23
If no api, for reference :

SELECT * FROM mantis_project_table as a
WHERE id NOT IN (SELECT child_id FROM mantis_project_hierarchy_table)
AND enabled = 1