How to determine which labels are attached to which revision number?

0 Likes

Problem:

How to determine which labels are attached to which revision number?

Resolution:

  • Product Name: StarTeam SDK
  • Product Version: 2006
  • Product Component: SDK
  • Platform/OS Version: All Supported OS

Description:
How to determine which labels are attached to which revision number?


Answer/Solution:
Here is the sample code to achieve this...

// Get Attached labels

Label[] labels= item.getAttachedLabels();

// Get Item revision number based on Label

item.getFromHistoryByLabelID(labels[1].getID()).getRevisionNumber();


Author: Praveen Boyineni

Old KB# 27512
Comment List
Related
Recommended