How to get artifacts inside a module which are modified between a time range in DNG(Requirements Management) using OSLC query
2 answers
Hi G C
Using OSLC Query you can specify a condition for modified dates like:
* oslc.where=dcterms:modified>="2012-08-01T21:51:40.979Z"^^xsd:dateTime and dcterms:modified<"2012-08-02T21:51:40.979Z"^^xsd:dateTime
NOTE the bit after the first = MUST be URL-encoded - the example above will then look like this:
* oslc.where=dcterms%3Amodified%3E%3D%222012-08-01T21%3A51%3A40.979Z%22%5E%5Exsd%3AdateTime%20and%20dcterms%3Amodified%3C%222012-08-02T21%3A51%3A40.979Z%22%5E%5Exsd%3AdateTime
NOTE the times are "Z" only, i.e. UTC.
Whether a resource returned in the query is used in any module isn't AFAIK directly possible to query so you'll have to post-process the results; the ones without a value for rm_nav:parent and with a value for dcterms:identifier are module artifacts.
If you want to find artifacts used in a specific module you could perhaps find all the artifacts used in the module and then marry up the two sets of results, see my answer here https://jazz.net/forum/questions/276909/how-can-i-get-the-module-related-to-a-requiment-artifact-using-oslc-in-ibm-doors-ng?utm_campaign=forum&utm_medium=email&utm_source=forum-answer-accepted&utm_content=forum-question
HTH
Ian
Comments
showing 5 of 7
show 2 more comments