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

How to add comment to requirement artifact using OSLC RM API

Hi
We are trying to update RDNG requirement artifacts externally using OSLC APIs. We could create, update and delete artifact using API. However we are not able to add comment to the artifact. Comments can be retrieved using  this https://localhost:9443/rm/publish/comments?resourceURI=https://localhost:9443/rm/resources/_ftAoY89vEeeobM_fp1T5oA

But not sure which URI to be used to POST/PUT comment. If I try for above URI, then get it rerturns 500 internal server error.

I looked into firebug by adding comment to artifact manually in the artifact and it shows the comments are posted to this URI
https://localhost:9443t/rm/comments?resourceURI=https://localhost:9443/rm/resources/_ftAoY89vEeeobM_fp1T5oA

I tried post comment to this but get 403 forbidden error.  Please let me know if I am missing something. Please help. Is it allowed to add comment to artifact using OSLC API?

Thanks in advance


0 votes

Comments

On using the RM private API for adding comments, like I said in my answer, we don't support and document it. But some pointers: check your headers against what you see with firebug, and check the rm.log if you see any errors that tell you more..

Thanks for the information. I did check headers and tried to use same headers while posting message to add comment but the response is 403 forbidden. Not sure how it is identifying the request is internal or external


Accepted answer

Permanent link

The DNG OSLC API does not support comments, as comments are not part of the OSLC requirements management spec. And there is no other public API to manage comments. The private API, as you tried to use, is not documented, is not supported, so usage is on your own risk.

If you feel you need a public API to work with comments, you can put in a request for enhancement, which you can do here: IBM Software RFE Community







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

Question asked: Nov 27 '17, 11:51 p.m.

Question was seen: 1,739 times

Last updated: Dec 07 '17, 2:14 a.m.

Confirmation Cancel Confirm