How to check if custom field is in use and in which projects

projects, templates, custom fields, solutions, workflows

Moderator: Gali.Coral

How to check if custom field is in use and in which projects

Postby orcanos » Thu Jul 12, 2012 11:42 am

You need to enter admin and run a query (how to run a query: http://orcanos.com/forum/viewtopic.php?f=36&t=955)

Then run the following queries:

Custom fields that are in use:
select o.Obj_name as 'Project name', c.Field_name ,s.description as 'object_type'
from ITEM_DATA i , objects o, SYS_REF_VALUES s, CUSTOM_FIELDS c
where Is_custom=1
and o.ID=i.Project_id
and i.Obj_type =s.code
and s.table_code ='REF_OBJ_TYPE'
and c.ID=i.custom_field_id


Custom fields that are not in use:
select c.Field_name
from CUSTOM_FIELDS c
where ID not in (select custom_field_id from ITEM_DATA)
orcanos
Site Admin
 
Posts: 192
Joined: Sun Jan 28, 2007 1:47 am

Return to Projects & solutions administration

Who is online

Users browsing this forum: No registered users and 1 guest

cron