Fusion Manage Forum
Welcome to Autodesk’s Fusion Manage (formerly Fusion 360 Manage) Forum. Share your knowledge, ask questions, and explore popular Fusion Manage topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Enable scripting to add additional owners

6 REPLIES 6
Reply
Message 1 of 7
jamest
710 Views, 6 Replies

Enable scripting to add additional owners

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

Labels (1)
6 REPLIES 6
Message 2 of 7
jared.sund
in reply to: jamest

This has been on my personal wish list for a while, let's see if we can get some movement on this!
Jared Sund
Sr. Product Line Manager, Product Lifecycle Management
Autodesk, Inc.
Message 3 of 7
jared.sund
in reply to: jamest

New Properties

  • item.master.owner  
  •  
    • User (the owner of the item)
    • Now Modifiable (previous versions it was just readable)
  • item.master.additionalOwners
    • an array of Users
    • readable and modifiable as a normal array 
  • item.master.groupAdditionalOwners  
    • an array of Groups
    • readable and modifiable as a normal array

 

     N.B. item.master, and item.master.owner already existed, but don’t appear to be documented.

 

New functions

  • Security.loadGroup(String)  
  •  
    • Loads a group by its name

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’);

 

 

Jared Sund
Sr. Product Line Manager, Product Lifecycle Management
Autodesk, Inc.
Message 4 of 7
jamest
in reply to: jamest

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

 

Message 5 of 7
bentup
in reply to: jamest

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.

Message 6 of 7
nguyentru
in reply to: jamest

Currently you can add and remove groups and users to the AdditonalOwner.

Trung Nguyen | PLM Product Management | Autodesk, Inc.
Message 7 of 7
tphillips
in reply to: jamest

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 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report