It's all about the answers!

Ask a question

How to restrict user from removing children work item links ?


Krishna K (138) | asked Jul 21 '17, 2:12 p.m.

 Hi, we need to restrict the user from removing children work items linked to particular work item. Is it possible through plugin ? If yes, then can someone please share the idea ? or is there any alternate way to do the same ?


Thanks in advance.

2 answers



permanent link
Bharath Rao (915241) | answered Jul 24 '17, 1:50 a.m.

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
Krishna K commented Jul 24 '17, 2:35 a.m.

 Hi Bharath,

Thanks for your answer, but here users should be able to add/remove link on particular state. We can not restrict users to add/remove links on all states.
Is there any other way to do the same ?

Once again Thanks.


Bharath Rao commented Jul 24 '17, 2:46 a.m.

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.



Krishna K commented Jul 24 '17, 10:32 a.m.

 Hi Bharath,


Above mentioned article tells about attributes not for links type, so I am not able to apply those things for links section. Also I came to know that we can not do validation of link through javascript code.


permanent link
Ralph Schoon (63.3k33646) | answered Jul 24 '17, 3:14 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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/

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.