Extracting Module and Artifact data from DOORS N #98
Replies: 1 comment 2 replies
-
AFAIK apart from the f-string issue there's no reason you should be able to use back to Python 3.9. However I'm using 3.13 (which is why I hadn't seen the f-string issue myself). Which example are you starting from? If you're getting the module details then you must have selected a project/component/configuration: continue using the badly named If what you need is a list of the artifacts in the module (i.e. not the heading hierarchy) the simplest way to get these is to use OSLC Query to give you all the artifacts used by the module, for example (based on dn_simple_module_structure.py line 173, insert this after line 189):
You can put additional query terms in the
returns only artifacts of that type in the module. In a future release I'm going to make it easier to do OSLC Queries by providing a function using the same query expression syntax as used by the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
So I am trying to extract data from DN. I want to retrieve Module artifacts as well as all data about the artifacts inside of that module.
In version 0.31.1 I manage to retrieve the module structure, but I need more detail about the specific artifacts. I've tried using 0.32 and 0.33 but I am unfortunately locked to using python 3.11.9 and I seem to hit some syntax issues (like f string matching that is easily fixed), but other than that, the scripts just give me a lot of errors (like me needing to insert projectname, login etc in multiple places for authentication to work). It just feels like something is stopping the code from working properly at certain places.
Is there a python 3.12+ requirement somewhere I am not seeing or something similar? Which example files would be best for my use case of retrieving a Module, and full details about the Artifacts (attributes, tables etc)?
Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions