PLM 360 General

Reply
Active Member
jamest
Posts: 15
Registered: ‎09-27-2012
Message 1 of 6 (388 Views)
Accepted Solution

Change owner or add owner by script

388 Views, 5 Replies
12-05-2012 08:20 PM

Hi All,

i want to be able to have an item field (user picklist) called something like "Assinged to" and on creation of that item ownership is changed to the person specified in the Assinged to Field. i wouldnt mind if this person was added to the additional items either just as long as they are considered an owner of the task.

i want this so that when i assign a task to someone others cant see there tasks (permisions "View Records owned by others), this is mostly because i want to clean up the outstanding work section of the home screen. right now everyone can see the task even if they are not responsible for it.

i dont mind if there is a simple answer to this that doesnt need scripting however i dont think there is. 

 

Cheers,

James Tennent

 

Product Support
michelle.stone
Posts: 220
Registered: ‎02-21-2012
Message 2 of 6 (375 Views)

Re: Change owner or add owner by script

12-07-2012 04:44 PM in reply to: jamest

James - it's not possible to update the owner or add additional owners through scripting currently.  One way we deal with this is like you mentioned - remove the 'View Records Owned by Others' permission from the workpace and have the record creator add specific groups or users to the additonal owners:

 

owners.jpg

 

Michelle



Michelle Stone
PLM Product Manager
Autodesk, Inc.
Mentor
dkeeley
Posts: 214
Registered: ‎10-04-2012
Message 3 of 6 (368 Views)

Re: Change owner or add owner by script

12-09-2012 04:14 AM in reply to: jamest

Hi James,

 

I'll also need to be bale to have this functionality in the future. Have you posted this proposal in IdeaStation?

 

David.

Active Member
jamest
Posts: 15
Registered: ‎09-27-2012
Message 4 of 6 (350 Views)

Re: Change owner or add owner by script

12-20-2012 09:22 PM in reply to: dkeeley

this has now been added to the idea station, hit the kudos to give it some legs if you like.

New Member
859-46BDSPRM_2013_OF
Posts: 1
Registered: ‎08-27-2013
Message 5 of 6 (268 Views)

Re: Change owner or add owner by script

08-27-2013 01:06 PM in reply to: michelle.stone

So if an employee quits and goes to another competing firm, he/she can still access the files as an owner on Autodesk 360? How do I handle this situation?

New Member
bentup
Posts: 2
Registered: ‎08-30-2013
Message 6 of 6 (217 Views)

Re: Change owner or add owner by script

09-26-2013 06:07 PM in reply to: jamest

Looks like the idea has been implemented.  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.

 

Kudos to Joe for the jump start in this thread:

http://forums.autodesk.com/t5/Autodesk-PLM-360/Users-ALL-by-Name-pick-list/td-p/4385263

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Ask the Community