Can a Groovy Script PX be used to update item attribute when PX is initiated from a Change Order
I’m attempting to create a Script PX which is initiated from a change order. It finds the part number of a specific subclass from the affected items list and then attempts to update a page-three attribute of that item. Said attribute is not change controlled, so making this change to the item should not require another change order.
It appears to error with “Insufficient Privilege” when trying to access the IItem object from the change.
,where partnumber is a variable with the name of an item that is a document class object.
For testing, the PX has an Agile Admin role which has access to update any item attributes.
I’m not sure if this will help your privilege issue, but I had a question about Groovy, and it is working. This was my post: https://myagileplm.com/questions/groovy-script-to-update-an-item/
It might be worth creating a new role with all permissions required (discover, read, modify, etc.) to confirm it’s really not permissions related. Also, use a test account with the exact same roles assigned to confirm it’s working manually.