It's all about the answers!

Ask a question

Can an artifact state change be triggered automatically in RDNG 6.0.3?


Jamie Berry (14014196) | asked Jul 10 '17, 5:07 p.m.
edited Jul 10 '17, 7:01 p.m.

We are using RDNG version 6.0.3 and I have a user that would like the state of an artifact to be changed to 'In Review' whenever someone creates and starts a new review for that artifact.  I don't see any direct way of making this happen, but I was wondering if anyone had any suggestions on accomplishing this?  Would it be possible with a DNG extension (make something that creates/starts a review and changes the state together)?  I have found the documentation on building extensions and see some examples.  Looking through the API, I don't see anything to create reviews or set the state attribute specifically (although setting attributes might be there).  Has anyone done this type of extension?

Thanks,

Jamie Berry.

One answer



permanent link
Benjamin Silverman (4.1k610) | answered Jul 10 '17, 7:28 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Hi Jamie,

It doesn't look like the extension API supports retrieving the contents in the "Where Used" section of the sidebar (which includes the review information), so you wouldn't be able to check to see if the artifact was included in a review in order to determine the.  The OSLC API also does not return this information.  The only way I see being able to do this is to mimick what the web client is doing by doing a POST to:

https://clmweb.ibm.com/rm/storedquery/GetReviewsWithArtifact?artifactUri=https://clmweb.ibm.com/rm/resources/_xPI14WXFEeeVocUjxqQw2Q

with headers:

context: https://clmweb.ibm.com/rm/rm-projects/_oDRjQWXFEeeVocUjxqQw2Q/components/_oJbOkGXFE eeVocUjxqQw2Q
DoorsRP-Request-Type: private

This will return a feed containing the review URI if the artifact is part of a review, however this query is not supported as it is not a public API.

If you determined the artifact is in a review, you can use the OSLC API to set the value of a custom attribute.

Someone else might have an easier method, but I couldn't find out.  Hope it helps,

Your answer


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