I am trying to write a script that when given a software change request, HSV_SLED_SCR_144, will connect to Dimensions via dmcli and return a list of all related items
Cybersecurity
DevOps Cloud (ADM)
IT Operations Cloud
If an answer to your question is correct, click on "Verify Answer" under the "More" button. The answer will now appear with a checkmark. Please be sure to always mark answers that resolve your issue as verified. Your fellow Community members will appreciate it!  Learn more
I am trying to write a script that when given a software change request, HSV_SLED_SCR_144, will connect to Dimensions via dmcli and return a list of all related items
Hi, there are a number of ways you can tackle this via Dimensions CM APIs and CLIs. Start here: https://admhelp.microfocus.com/dimensionscm/en/14.6/online_help/Content/DeveloperHelp/developers_ref.htm
Do you have a scripting language in mind you would like to use? Otherwise, I might suggest the getRequests call from the Web Services Reference in the doc above.
We are using Azure Dev Ops for our code repositories. Dimensions will be used for traceability; all Problem Reports, Software Change Requests, Code Reviews, Test Results, etc.
My current line of thinking is to have a pre-merge hook in the git repo that runs a python script that queries Dimensions and processes the output. Something like
rv = subprocess.run(['dmcli'], ['some command'], capture_output=True) for line in rv.stdout: # process results from Dimensions
Then a post-merge hook would update the Dimensions SCR with the git commit hash.