Obtain artifact Wrapped Resource link from RM extension
Hello,
|
One answer
Hello Giovanni,
If you upload an artifact (for example an image) to a folder in RM, it will create an artifact (the wrapper resource) that references the actual image (the image would be the wrapped resource).
So lets say the URL of the artifact that was created when uploading the image, is https://xxxxx.com/rm/resources/WR_tDcmoZrJEeyk_I2zbQzuyg
Then you could change that URL to https://xxxxx.com/rm/wrappedResources/WR_tDcmoZrJEeyk_I2zbQzuyg and you would have the URL to the wrapped resource itself.
In ERM Doors Next v7.x*, the UID (WR_tDcmoZrJEeyk_I2zbQzuygc in this example) is usually the same for the wrapped resource and the wrapper resource. So perhaps you can use fact that in your script?
*Note that in older RM versions these UID's are not the same. So this only works for v7.x
Comments
Giovanni Tenaglia
commented Apr 10, 6:35 a.m.
Thank you, but this does not seem to work in my case even i'm using version 7.0.3.
Error 400: Bad RequestPropagated exception; original message [InternalServerErrorException: Propagated exception; original message [ClassCastException: com.ibm.rdm.service.artifacts.model.impl.Binding incompatible with com.ibm.rdm.service.artifacts.model.IWrapperResource]]
|
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.
Comments
If you have to comment on an old question, please use a comment and not an answer. Now this question looks as it has an answer which it does not.