Quantcast
Channel: PTC Community : Popular Discussions - Integrity
Viewing all articles
Browse latest Browse all 3432

output from "si viewprojects...", how to sort subprojects?

$
0
0

Hi @all,

 

we have a quite complex structure in our projects in Source Integrity. And sometimes our users are doing checkpoints with label, and then they realise that the label is wrong. And as you know, deleting a projectlabel doesnt work recursive (hmpf!). So we wanted to do this with a script via commandline. For this we want to know which subprojects are child-projects from this point in our structure where the label was set and (important) which of them are shares. If we look at it like this:

 

si viewproject --project=<name of the subproject which was checkpointed> -Y

 

then we get a text, in which the structure is shown by the numbers of spaces in front of each line (this is a very special idea i have to say). But even worse: this isnt very reliable (we filed this already as a bug to PTC-support), because sometimes it doesnt count correctly (there are not the right numbers of space-chars).

 

If we use the parameter --xmlapi we get a xml-structur, but i didnt found any information how the subproject-structure is mapped into this xml? All subprojects are laying parallel? And if i wanted to look which subproject is a child of another, i have to parse the attribute-entries?

 

An example. This is the output of "si viewproject --project=/Spielwiese/Test_NX2/test2/project.pj -Y" :

 

  test2_1/project.pj subproject

   share_test1/project.pj shared-subproject

     test1_1/project.pj subproject

     index.html.dk archived 1.1

     index.html.ee archived 1.1

     index.html.el archived 1.1

   test2_1_1/project.pj subproject

     index.html archived 1.1

   index.html.ca archived 1.1

 

I can see that "share_test1" is a share and "test1_1" is a child of it.

 

The output in xml with "si viewproject --project=/Spielwiese/Test_NX2/test2/project.pj -R --xmlapi" is attached to this posting.

 

In this xml-output i can see, in one workitem-element that share_test1 is a shared-subproject. The next element of type "Workitem" is test1_1, but it is shown as subproject. But this workitem-element is parallel to share_test1 and also to test2_1_1. How can i see which workitem is a childproject from another?

 

Thanks, Jens



Viewing all articles
Browse latest Browse all 3432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>