Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Hi @all,
an example: we have a checkpoint 1.2 with label "Test1". Another user adds another label "Test2,Test3" to this checkpoint. If i want to look via commandline with
si viewprojecthistory -P#<projectpath> --rfilter=labeled --fields=labels/<projectpath>
than i get this output:
Test1,Test2,Test3
So i couldnt see if this is one label, or two lables, or three labels. Is there any way to see that there were originally two labels?
Thanks, and kind regards, Jens
Jens,
Which version of Integrity are you using? When I test this in 10.2, the labels are seperated by a new line. They appear like this:
Test1
Test2,Test3
I also used slightly different syntax in my command. I used this instead of what you posted:
si viewprojecthistory -P#<projectpath> --rfilter=labeled --fields=labels
Maybe give that a try and see if you get different results.
Hi Jeremy,
we're also using 10.2 (with HF1). And unfortunately also with your syntax i got all labels in one line. So here is my commandline without placeholders:
si viewprojecthistory --P#/Spielwiese#Test --rfilter=labeled --fields=labels
and also with this line:
si viewprojecthistory --project=/Spielwiese/Test/project.pj --rfilter=labeled --fields=labels
i got this output:
Test1,Test2,Test3,Test4,Test5
This is Checkpoint 1.6 in this project, and it has three labels: the first label was set with the checkpoint: "Test1,Test2,Test3", second Label added later: "Test4", and a third label added even later: "Test5". Here a screenshot from the projecthistory within the client:
Is there any flag maybe in the preferences which can handle this?
kind regards, Jens
That information clarifies it a bit. The command lists the labels with each new checkpoint starting a new line. If you have multiple labels on one checkpoint, they will show up on the same line.
Hi Jeremy,
thanks for your answer. So it seems to go the usual way: we have to open a RfC for this...
kind regards, Jens
Hi Jens,
in 10.2 there is an option "--xmlapi" that gives you more detailed information.
will result in :
HTH Matthias
Note: the --xmlapi option is available for many CLI command but unfortunately not for all.
Hi Matthias,
thanks, this is very helpful!
kind regards, Jens