Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to access snapshot and baseline name using server side api in RTC

 Hi all,

I am writing custom precondition for RTC to validate the snapshot and baseline name . Basically I am trying to implement naming convention for snapshot and baseline.

I explored on the api to get snapshot name but did find anything. Could you please let me (sample code would be very much helpful) how to get the snapshot and baseline name in server side precondition

Thank you all in advance

0 votes



3 answers

Permanent link
Here and in the related posts is some example code for baselines. https://rsjazz.wordpress.com/2013/09/30/delivering-change-sets-and-baselines-to-a-stream-using-the-plain-java-client-libraries/ most of the code should be common and be available in client and server API.

A snapshot is a IBaselineSetHandle or IBaselineSet and you should be able to find some hints here: https://www.google.com/search?q=baselineset+site:jazz.net

0 votes

Comments
 Hi Ralph,
Thank you for quick response.
I need server side precondition, so that user can follow specific format to create snapshot and baselines.For Snapshot I am able to get snapshot name but I am not able to get baseline name. Which operationId we need to use to get Baseline name. Sample code would be very much helpful.


Permanent link
I think all the classes and methods you would need for SCM Handling would be in com.ibm.team.scm.common.*;

remember this is an object oriented system, there is not a 'single' api, but a collection of objects, methods and data items.

0 votes


Permanent link

 Hello Guys,


I am able to fetch the list of snapshots from a given stream programmatically but I am unable to fetch the list of components within a snapshot. I need to copy some files from one component in the snapshot to a component outside the snapshot(in another stream)...

Please help...

0 votes

Comments

When you have a snapshot (IBaselineSet) you will need to fetch the full IBaseline objects (from the handles of IBaselineSet.getBaselines()). From there, you can get the component using IBaseline.getComponent().

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,934
× 1,202
× 84
× 74

Question asked: Jul 20 '16, 7:21 a.m.

Question was seen: 6,698 times

Last updated: Feb 01 '21, 10:10 a.m.

Confirmation Cancel Confirm