How to restrict user from removing children work item links ?
2 answers
Hi Krishna,
You can modify the permissions for the intended project area to restrict the user from modifying the children work item links. Go to Manage This Project Area > Permissions > (Intended Role) > Save Work Items > Modify the work item > Modify the work item's links, remove the permission to Add / Remove child link.
Comments
Hi Bharath,
Hi Krishna,
You could use script based condition and operation advisor to achieve it. Refer the below link to tailor a script according to your needs.
https://jazz.net/library/article/997
NOTE:
We suggest you try them out on your Test Environment before implementing it on the Production Setup.
Hi Bharath,
Attribute customization and read only will not work. See https://rsjazz.wordpress.com/2016/07/15/rtc-process-customization-what-you-can-and-cannot-do/
You would have to write a work item save advisor like https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/ that checks which link is saved/removed and prevents the save,
Note that some link types such as Tracks/Contributes to don't even trigger an advisor. Parent/child links do though. Some hints on that API are in https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/