Hi All,
I am not sure if this has been mentioned yet.
Currently your outstanding tasks will show anything that you have the ability to change, this means that there is WAY too many items in the list then is relevant.
My solution would be to allow a script to run (on item creation although doesn’t really matter) that would take the information from a user pick list field (let’s call it Assigned to) and add that person to the additional owners of the item.
Then in the security settings do not give your users access to see items owned by others and hence leaving you with an outstanding items list that is relevant to you not your entire team.
I understand that I could just add them into the additional owners manually however this is extremely frustrating as there is nothing to prompt you to do so and is often forgotten, if it is a field then I can make it required.
Please!!! 🙂
James
New Properties
N.B. item.master, and item.master.owner already existed, but don’t appear to be documented.
New functions
Examples
Make current user an additional owner
var currentUser =Security.loadUser(userID);
item.master.additionalOwners.push(currentUser);
Make QA group an additional Owner
var qa group = Security.loadGroup('QA’);
item.master.groupAdditionalOwners.push(qa);
Make ‘bob’ owner:
item.master.owner=Security.loadUser(‘bob’);
i am just following up on these examples,
i have been able to get the first one to work (userID), havent tried the second, however it the third one that bothers me.
it is my understanding that i need to get the user as an "object"
what i really need is to use a pick list and add additional owners based on that picklist selection, i dont really see the point if i cant do that.
Thanks
James
I got the following script to update an item's owner by leveraging the Users, ALL by Name picklist in my PROJECT_OWNER field. The complexity is due to loadUser using the Autodesk ID, but the picklist using user actual names. The search allows for a first and last name match.
var userName=item.PROJECT_OWNER; // Get the users
var nameArray=userName.split(", "); // Split the name of user in question
var lName=nameArray[0]; // Last name
var fName=nameArray[1]; // First name
var userINFO = Security.searchUsers({lastName:lName, firstName:fName}); //Find the user
item.master.owner = Security.loadUser(userINFO[0].id); //Changes owner to user.
Currently you can add and remove groups and users to the AdditonalOwner.
Is there functionallity to add additional owners based on their geographical location. We have multiple locations globally accessing the same workspaces. Upon creation of documents, i would like additional owners to be automatically populated for that location.
Thanks
Tyler