I tried getting the versions using getApplicationProcessRequest, however it only gives you all the version in Application Process if the Process is successful in component process, else It would not give the Version Names.
Any help is appreciated. Kindly help I need it to implement in my Project.
If I understood the question correctly, you can get information about an application process requests on the server by using getApplicationsProcessRequests CLI command:
First we get information about all application process requests, then parse a text representation of a JSON response, then filter by the UCD application name and then collect, for example application name with snapshot name, into a list.
ucdCliCommands.groovy:
jsonUtils.groovy: