How to access snapshot and baseline name using server side api in RTC
![]()
Nilesh Patil (17●3●41●50)
| asked Jul 20 '16, 7:21 a.m.
edited Jul 25 '16, 4:15 p.m. by David Lafreniere (4.8k●7)
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
|
3 answers
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Jul 20 '16, 7:41 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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 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.
|
![]()
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. |
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.