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

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

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.

0 votes



One answer

Permanent link

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,

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: Jul 10 '17, 5:07 p.m.

Question was seen: 2,243 times

Last updated: Jul 10 '17, 7:28 p.m.

Confirmation Cancel Confirm