Skip Navigation LinksHome Page > Forums > SpiraTeam Forums > Spira Custom Reports > Need help to build custom...
Can we build a Custom Report to pull the modified testcases in a given project. We looked into tables for SpiraTestEntities.R_HistoryChangeSets and SpiraTestEntities.R_HistoryDetails but none of the fields are matching to get the modified Testcase id.
Hi Kiran
The following ESQL custom report query will display a list of all the field changes for test cases in a specific product/project:
select HC.CHANGESET_ID, HC.ARTIFACT_TYPE_NAME, HC.CHANGE_DATE, HC.ARTIFACT_ID as TEST_CASE_ID, HC.ARTIFACT_DESC as TEST_CASE_NAME, HD.FIELD_NAME, HD.OLD_VALUE, HD.NEW_VALUE from SpiraTestEntities.R_HistoryChangeSets as HC join SpiraTestEntities.R_HistoryDetails as HD on HC.CHANGESET_ID = HD.CHANGESET_ID where HC.PROJECT_ID = ${ProjectId} and HC.ARTIFACT_TYPE_ID = 2
(Artifact Type = 2 is test cases)
RegardsDavid
Thanks David, Can I filter it further to pull the modified testcases in the past 1 week.
Sure just add a where clause on one the date fields....
https://spiradoc.inflectra.com/Reporting/Custom-Report-Tables/
History Change-SetsΒΆCHANGESET_IDUSER_IDARTIFACT_TYPE_IDARTIFACT_IDCHANGE_DATECHANGETYPE_IDPROJECT_IDREVERT_IDARTIFACT_DESCCHANGETYPE_NAMEUSER_NAMEARTIFACT_TYPE_NAMESIGNATURE_HASHMEANING
History Change-SetsΒΆ
In this case, CHANGE_DATE.
And if you have any questions, please email or call us at +1 (202) 558-6885