RM.Data.setAttributes
I can update with following code RM-artifacts, if there are less than 1000 artifacts. How can I get this work if there are more artifacts to be changed? Can I trigger a task tracker?
4 answers
Comments
I can not write the whole text here, so I wrote it down as answer
1 vote
Comments
Dear Jean-Francois,
1 vote
In the UI, the limitation is indeed a maximum of 200 artifacts. To overcome this limit, one of the first operations performed by my widget was to generate a list of artifacts of a certain type (for example, all artifacts of type "Requirement"), the number of which, depending on the module, can be well over 200. To do this, I used the "RM.Data.getContentsStructure" function to retrieve all the artifacts from the module and generate the "artifactList".
I admit that I spent some time making the widget's interface more fluid and preventing it from freezing while "RM.Data.setAttributes" did its work. There's nothing more frustrating or unsettling for a user than not seeing the progress of the processing; therefore, batch processing seemed the most appropriate solution.
Next, I did not want to go beyond the limits of the application by launching updates, with "RM.Data.setAttributes", of several hundred artifacts.
Thank you for your answer.
The OSLC API will certainly do what you want but not in bulk - you'll have to GET each resource make the changes and PUT to update it.