Created
February 5, 2022 04:09
-
-
Save akanieski/49c3b9372773e30bb87df8dee5338424 to your computer and use it in GitHub Desktop.
Query to locate custom fields
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select prj.ProjectName, WorkItemType, f.ReferenceName, f.FieldId from dbo.tbl_FieldUsage u | |
left join tbl_field f on f.fieldid = u.fieldid | |
left join [AnalyticsModel].tbl_WorkItemTypeField witf on witf.FieldReferenceName = f.ReportingReferenceName | |
left join [AnalyticsModel].tbl_Project prj on prj.ProjectSK = witf.ProjectSK | |
where u.IsCore = 0 and u.ObjectId = -100 and ChangerId > 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment