It's all about the answers!

Ask a question

How can I search for a baseline in my snapshots?

Andrew Trobec (49712143139) | asked Nov 11 '13, 3:53 a.m.
retagged Dec 16 '13, 5:14 p.m. by David Lafreniere (4.8k7)
Good Morning,

I am using RTC

If I have a component COMP1 that has baselines BL1, BL2, BL3 and during the course of the project I include these various baslines in a number of configurations by using snapshots, is there a way of extracting a list of the snapshots that a given baseline is included in?  For example, I want to know which snapshots BL2 is part of.  Also, is it possible to have a flow diagram type visualisation of this information?

Thank you and best regards,


2 answers

permanent link
Nick Edgar (6.5k711) | answered Nov 11 '13, 4:43 p.m.
Hi Andrew, I don't see any way of doing this.  There are APIs for querying for snapshots, but the available criteria don't seem to allow you to look for particular baselines.  It seems one can only search by name, owner, modified date range.  I looked at:

Andrew Trobec commented Nov 12 '13, 2:48 a.m.


Hello Nick,
Thank you for the response.  I took a look at the Insight data model as well and didn't find anything useful.  
This would be a great feature to have. Has somebody already opened an enhancement request?

Nick Edgar commented Nov 12 '13, 8:58 a.m.

I found: Would like to search for streams or snapshots that include a baseline (32135)

It doesn't look like it's had much activity in 2 years.

permanent link
David Lafreniere (4.8k7) | answered Jun 20 '19, 9:36 a.m.
API to support this was added in RTC 6.0.2 (In this work item: Expand IBaselineSetSearchCriteria to allow searching for snapshots containing a baseline (376652))

An example of how to use this API is as follows:
IBaselineHandle b1 = getBaselineHandle();
IBaselineSetSearchCriteria criteria = IBaselineSetSearchCriteria.FACTORY.newInstance();
ItemQueryResult result = scmQueryService.findBaselineSets(criteria, 3, null);

There is no UI to support this however. Such enhancements are tracked in these work items:

Your answer

Register or to post your answer.