Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
I'd like to know si commands for retrieving a list of files and their versions from a Project based on labels on the files themselves. So I'm after a list of all files with a label from a project.
I'd like to know a similar cli means of retrieving the files/versions from a Project if the Project checkpoint itself is what is labeled, which might first mean getting the Checkpoint based on the label, then getting the files based on the checkpoint.
Solved! Go to Solution.
I'm using Perl scripts as an interface, so replace $projectName, $checkPoint, $user and $password with a real stuff...
si viewproject -P $projectName/project.pj --projectRevision=$checkPoint -R --yes --filterSubs --xmlapi --user=$user --password=$password
--xmlapi is optional
I was able to get this to work.
See http://communities.ptc.com/message/237487#237487
I need the information, not the sandbox and file content. This would be prior to the creation of a sandbox or to help determine whether a sandbox needs to be sync'd as a whole or for individual files.
You could try using:
si viewproject -R --project=/some/project/name/project.pj --filtersubs --filter=label:MyLabelGoesHere
This assumes you also use/propagate checkpoint label on member level. Our Admins don't allow it because of performance issue.
It would be nice if one could get the list of the files in a checkpoint even if the members are not labeled.
I've tried the option --projectRevision=1.2 but I get a CLI error I don't understand.
I'm using Perl scripts as an interface, so replace $projectName, $checkPoint, $user and $password with a real stuff...
si viewproject -P $projectName/project.pj --projectRevision=$checkPoint -R --yes --filterSubs --xmlapi --user=$user --password=$password
--xmlapi is optional
I was able to get this to work.
It does not work for me.
Do you use for the projectRevision the revision number for example 1.2?
What is this --yes for?
Hint: You don't need to use the password at each command. If the user is connected it is not needed.
To connect use the si connect --gui command. This way you don't have the password stored/visible in your code.
Hi,
i tried following syntax:
si viewproject --projectRevision=1.3 -P "project"
This command lists all members with his revision at ProjectCheckpoint 1.3
@Thierry Why you get an CLI error? Typo or does the Checkpoint you tried (1.2) does not exists in the specified project?
I don't understand really your Use Case.
If you want to see if your sandbox has diff you can use other command like viewsandbox with some filteroptions like --filter:changed.
You can also resync with filteroptions. One common useful filter is --filter=!locked:%USERNAME%.