It's all about the answers!

Ask a question

How to add comment to requirement artifact using OSLC RM API


Mallanagouda Patil (40713) | asked Nov 27 '17, 11:51 p.m.

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



Comments
Bas Bekker commented Dec 06 '17, 11:24 a.m.
JAZZ DEVELOPER

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..


Mallanagouda Patil commented Dec 07 '17, 2:14 a.m.

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
Bas Bekker (1.4k4) | answered Nov 28 '17, 6:16 p.m.
JAZZ DEVELOPER

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

Your answer


Register or to post your answer.