This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Get items related to SCR via dmcli

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

  • 0  

    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.

  • 0 in reply to   

    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.