Hi Community,
Can someone please provide us SQL query to get list of all used custom fields in the server.
If should contains below details
1) Custom field type.
2) Custom field name.
3)In how many projects it has been used.
4)It should contains whether custom field is duplicate or not.
5)It should contains complete data of the custom field(options, formula).
6) It should contains how many context created for custom field.
And also for all unused custom fields.
Regards,
Pradeep KM
Community moderators have prevented the ability to post new answers.
This is a horrid query to construct, as you'll need to join at least 9 tables together in a horrendously inefficient slow query. The database is the last place you should be looking.
Can you explain what problem you think this report would help you solve? It sounds like you want to do some housekeeping and simplification, but a monolithic report with this data in it is very unlikely to be of any help. (Especially on point 4 - there's no way the data can know it's a duplicate). If it is housekeeping, then you should be analysing the data one function at a time.
we need the total number of custom fields, for internal audit purpose. could you please give the query
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You'll get the wrong answer from SQL. There are system fields implemented partially as custom fields, and the number won't be suitable for your audit.
Please, look in the admin interface, it won't take you long to count them up in there (6 pages at 25 per page, + 4 on the last page = 154), and it has a lot more (accurate) useful information than the SQL query will give you (take the system fields off the 154)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Nic Brough -Adaptavist-
We need this list for future reference even if someone delete custom fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use the audit log to see that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It sounds like you are trying to get audit data out, excel is a bad way to look at that sort of data.
What reporting are you actually trying to do?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.