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

How to create/ Update Attributes Data Type of a project area in DNG using Java script and OSLC API

Using the Attributes of RM API, I am not able to get the Attributes Data Type. Is there a way to get this value using the API? 

1

0 votes


Accepted answer

Permanent link
You should be able to get the attribute data type with the OSLC REST API looking for resource shapes.

Just for completeness, there are three public API's for DNG:
Ralph Schoon selected this answer as the correct answer

0 votes

Comments

Thanks a lot for your reply. Please let me know how to fetch attribute data type with the OSLC REST API. As I could see in the link, it can be obtained for specific artifact's attribute data type.

In my case, I need to modify the artifact attribute data type of PA. E.g.: New ENUM value to be added for specific artifact attribute data type - "Status"

Check the workshop on how to get the attributes of an artifact. In OSLC it's not defined in terms of of artifact attributes and data types, but in the term of resource shapes, ie <oslc:resourceShape rdf:resource="https://<your server:9443/rm/types/<some UUID>"/>

And the OSLC API does not allow you to update resource shapes, you will need to do that through the web UI: manage project properties.


2 other answers

Permanent link
Hello,

You can fetch the attribute values using REST API via REST Client.
What exactly you want to get fro the Attributes Data Type.

0 votes


Permanent link
What you should really ask, whether you can use OSLC API or Java API?

0 votes

Comments

The is no such thing as a Java API. All is REST services based, with the OSLC API being public.

The OSLC REST calls can be made in any programming language, though the samples in the workshop are in Java, so for other languages you need to do some extra work to get things going.

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
× 479
× 411
× 234

Question asked: Apr 04 '16, 1:42 p.m.

Question was seen: 3,847 times

Last updated: Aug 04 '16, 3:13 a.m.

Confirmation Cancel Confirm