what I'd like to do is to get the most recent checkpoint number of a project and any of it's subprojects.
Is there any possibility to do so?
What I've tried so far is to display every subproject with si viewproject --filter=attribute:name=project.pj -R and to display the history of a project with si viewprojecthistory --fields=revision, but as I'm new to PTC, i don't know how to combine them.
Re: How to get checkpoint number of every subproject
To get the most recent checkpoint for a project, you can use si projectinfo. The last checkpoint is listed.
D:/private/IntegrityServers/12.0>si projectinfo -P#/master
Project Name: /master/project.pj
Repository Location: /master/project.pj
Configuration Path: #/master
Last Checkpoint: 1.15
Last Checkpoint Date: 29-Mar-2019 10:16:37 AM
To get a list of the checkpoints in the subprojects, you can view the project at the last checkpoint with a filter to show only subprojects. For example, using the last checkpoint 1.15 as the build number for the project: