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

Internal SCM VersionID field name needed.

Hello,

I got the question  regarding the RTC internal Name of the SCM Version ID that looks like: 1@_ib6TAQVDEd-OHMj7Pjw0zw. The projects wants to populate this information into a field for further reference. Any hints ?

Thanks in advance
Siegfried.

0 votes

Comments

Field where? What do they intent to do with the information?

Hello Ralph,

here is a picture I got from the person asked the question.

Is this field accessible and can it be copied to another field ?

Thanks in advance
Sigi


Accepted answer

Permanent link
A human can access them at the file properties:





You can search for getVersionIdentifiers() in the SDK and you will find e.g.

ScmVersionableIdentifierList versionIdentifiers = com.ibm.team.filesystem.cli.core.util.RepoUtil
                            .getVersionIdentifiers(
                                    scmService,
                                    Collections.singletonList(versionable.getStateId().getUuidValue()), config);


which looks like this:

    public static ScmVersionableIdentifierList getVersionIdentifiers(IScmRichClientRestService scmService, Collection<String> stateIds, IScmClientConfiguration config)
            throws FileSystemException {
        ParmsGetVersionableIdentifiers parms = new ParmsGetVersionableIdentifiers();
        parms.versionableStateIds = stateIds.toArray(new String[stateIds.size()]);
        ScmVersionableIdentifierList versionIdentifiers = null;
        try {
            versionIdentifiers = scmService.postGetVersionableIdentifiers(parms);
        } catch (TeamRepositoryException e) {
            throw StatusHelper.wrap(Messages.RepoUtil_CANNOT_DETERMINE_VERSION_IDS, e,
                    new IndentingPrintStream(config.getContext().stderr()));
        }

        return versionIdentifiers;
    }



Siegfried Oesterreicher selected this answer as the correct answer

0 votes


One other answer

Permanent link
Those numbers are the version Full Version ID's of the elements in SCM Controlled by this setting:



The ones above are shown if "Always show the full version ID" is checked. More human useable version numbers are presented when you uncheck the check box.

These version ID's are properties of the change set or file version and can potentially be accessed with the API. So you can access them and potentially get and store them somewhere.


0 votes

Comments

Hello Ralph,
do you have the RTC internal name of the field to check the accessibility?

Thanks
Sigi

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,938

Question asked: Jul 22 '15, 2:32 a.m.

Question was seen: 3,358 times

Last updated: Sep 27 '15, 3:16 p.m.

Confirmation Cancel Confirm