Can you filter by modified in DNG Reportable REST API history\changeLog?
Hi all,
I'm working in a DOORS Next 6.0.6.1 system and I am trying to do some forensic analysis on a module with about 6000 artefacts and a LOT of changes, many of which have been done via either ReqIF or Excel imports.
The Audit History page in the DNG Web UI takes for ever and shows about 5000 pages of changes, so I have now created an audit history report in RPE.
What I really need to do is filter the history changelog on the 'modified' attribute to narrow down the date range. I can do this inside the conditions of the report template, but this then means I still have to pull back all the data first. I was wondering if anyone knew if there was any sort of native filter that can be supplied to the REST call?
2 answers
Hi @Davyd, have you tried with
https://server:port/rm/publish/resources?history=true&resourceURI=<artifactURI>
? and if required you can also narrow by the modified parameters. There are more details about filtering parameters, formats, etc in https://jazz.net/wiki/bin/view/Main/DNGReportableRestAPI
Comments
Hi @Javier, as mentioned before that's what I did and the modified parameter works on the artefact's modified date, not on the history.
Hi Davyd, the REST API of DNG allows you to apply a filter by Modified date, for example:
https://server:port/rm/publish/resources?modifiedSince=yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
Please take a look at the API description: https://jazz.net/wiki/bin/view/Main/DNGReportableRestAPI for more details.
Comments
Hi @Javier,
That filters artefacts that have been modified, it doesn't filter the changelog for the artefact.
So if you use the filter and ask for everything modified since yesterday, and you have an artefact that has 5000 modifications and was changed yesterday, you get all the changelog for that artefact, not just the stuff that happened yesterday