Hi,
I've an asset which has an attribute which can hold multiple reference objects.
To be clear the Application object has an attribute Users, which refers to Employee object. It can be that there are 100+ users in the attribute.
To update the object with a new user, I get the Application object, get all ids of the Users, add the new User and update the Application object. The call is taking more and more time, because of the growing number of values in the attribute.
So basically I'm updating e.g. 100 Employee objects for 101 Employee objects in the attribute.
Is there a quicker way to add just 1 Employee to the User attribute via the REST API?
I don't think its currently possible. as I' ve been searching for this as well.
The only thing I could find, that there is an open issue at Atlassian that relates to this; JSDCLOUD-11392
Thanks @Marc - Devoteam , it's so painfully slow. I think I have to endure the waiting.
48 updates down, still 3602 to go 😴💤
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I implemented a similar solution in our system, where we manage application/system License object with attributes for Users and Roles. Each Role is a reference to another object, and when a user requests a new role (or new access with some roles) and it's approved, I use a REST API call to append the new roles to the License object. Here is my method: Atlassian Article. But I think we might using the same method to add object to attribute.
In our case, haven't encountered any performance issues yet, but that's only because I don't have a large number of roles in the attribute at the moment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Xijie Yi , did a similar thing as you referenced in the article. It just the sheer amount of references that is bothering me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.