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

How to Create/Define SCM Custom Attributes in a Project Area via API

Hi

custom attributes on scm artefacts have been introduced.
Here I can see that the attributes can be defined using the Web UI.

Is there any other official or unofficial (resp. unsupported) way of defining the attributes?
API, ...?

Thank you

0 votes

Comments

There are always internal Java API methods for RTC SCM operations, but it is preferable to have RTC scm command line (external) methods for anything that you would want to script, so I would suggest submitting an enhancement request for the RTC scm command line for this.   If you don't get an answer here in a reasonable timeframe about the internal API to use, send me email, and I'll ping the SCM team.


Accepted answer

Permanent link
There is no API available to create/define a new custom attribute in a project area. This has to be done manually by the Project Administrator using the Web-UI. As Geoffrey already mentioned, please submit an RFE or enhancement for this request of API.

Note: there is however API to 'add' a pre-defined custom attribute, along with it's value, to files/components/baselines/streams (along with API to modify the value, or remove the custom attribute).
See the following article from Ralph that shows how some of the API works:

In RTC 6.0.6 API was added to return the list of available custom attributes in a project area (given an SCM item type). See IScmService.getDefinedCustomAttributeIdentifiers(...).

Marko Tomljenovic selected this answer as the correct answer

0 votes

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,937
× 6,121

Question asked: Aug 25 '15, 4:15 a.m.

Question was seen: 3,790 times

Last updated: Sep 04 '18, 11:58 a.m.

Related questions
Confirmation Cancel Confirm