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

How to set custom attribute values of artifact using Eclipse lyo : OSLC + JAVA

Hello,

I have defined structure in DNG server.  Now  I am trying to add artifact in that structure.
I am able to add artifact with system artifacts (name, description, etc.)

My question is how to set custom attributes ?

I have tried by setting extendedProperties and updating the same (using correct urls of attribute types). but no luck .

Please suggest how we can add custom attributes in artifact by using eclipse lyo.

0 votes

Comments

Have you been able to do so using a web browser plugin like Postman/RESTED etc?
I'd try that first to make sure your HTTP PUT request is correct.



One answer

Permanent link

You should be able to do it by updating the extended properties. 

It was helpful for me. Keep in mind to:
  1. Make sure that the right QName is set i.e. the namespace URI, local part and prefix. You can verify this from the rdf+xml response that we get by fetch the resource/artifact or by checking in the Component properties in DNG in the browser.
  2. Next step would be to add this <QName, Object> pair to the extended properties and UPDATE the resource.

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,940
× 25
× 2

Question asked: Dec 04 '21, 7:28 a.m.

Question was seen: 1,352 times

Last updated: Dec 07 '21, 4:55 a.m.

Confirmation Cancel Confirm