Report on requirements changed from date

Friday, November 10, 2023
Avatar

Hi,

I would like to create a report that generates a list of requirements that have their name or Description modified since a certain date.

How can I proceed?

1 Replies
Monday, November 13, 2023
Avatar
re: Alinour78 Friday, November 10, 2023

Hi

The simplest way to get the list of requirements that have any field changed is to run the standard requirements report and filter by Last Update Date.

If you want to only get the ones that have a change to the Name or Description field, you'd need to run a custom report using this ESQL:

select
  HC.ARTIFACT_ID as REQUIREMENT_ID,
  HC.ARTIFACT_DESC as REQUIREMENT_NAME,
  MAX(HC.CHANGE_DATE) as CHANGE_DATE,
  RQ.REQUIREMENT_TYPE_NAME,
  RQ.REQUIREMENT_STATUS_NAME,
  RQ.IMPORTANCE_NAME
from SpiraTestEntities.R_HistoryChangeSets as HC
inner join SpiraTestEntities.R_HistoryDetails as HD on HC.CHANGESET_ID = HD.CHANGESET_ID
inner join SpiraTestEntities.R_Requirements as RQ on HC.ARTIFACT_ID = RQ.REQUIREMENT_ID
where
  (HD.FIELD_NAME = 'Name' or HD.FIELD_NAME = 'Description') and
  HC.ARTIFACT_TYPE_ID = 1 and
  HC.PROJECT_ID = ${ProjectId} and
  RQ.IS_DELETED = False
group by
  HC.ARTIFACT_ID,
  HC.ARTIFACT_DESC,
  RQ.REQUIREMENT_TYPE_NAME,
  RQ.REQUIREMENT_STATUS_NAME,
  RQ.IMPORTANCE_NAME
order by
  CHANGE_DATE DESC,
  HC.ARTIFACT_ID

Regards

David

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Friday, November 10, 2023
  • Last Reply: Monday, November 13, 2023
  • Replies: 1
  • Views: 817