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

Issue with RM.Data.setAttributes When Updating Attributes for Multiple Linked Work Items

I am developing a widget to fetch status information from RTC work items linked via the "Implemented By" link type and update values in two different attributes in RM artifacts.

Problem
The functionality works correctly when there are fewer than three linked work items. However, when three or more links are present, the API call causes the page to freeze, making the browser unresponsive.

In the Network tab, I noticed a multi-request API call ( https://jazz.com/rm/multi-request ) being triggered. I am unsure about its purpose or how it impacts my implementation.

Current Implementation
The API used is  RM.Data.setAttributes . Here is an example of the  artifactsToUpdate  object passed to this function:



Any help in resolving this issue or guidance on best practices for handling such cases would be greatly appreciated.


0 votes



2 answers

Permanent link

Can you show us your code? Virtually all of these functions are written to be asynchronous, so should be used with callbacks or wrapped in a Promise so that they can continue in the background while you do other things.

0 votes


Permanent link

Thank you for your response. I apologize for the delay in getting back to you due to some login issues.

My code:

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: Nov 29 '24, 12:02 a.m.

Question was seen: 300 times

Last updated: Dec 06 '24, 2:08 a.m.

Confirmation Cancel Confirm