Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to restrict user from removing children work item links ?

 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.

0 votes



2 answers

Permanent link

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.

1 vote

Comments

 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.

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,


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

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/

1 vote

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,940

Question asked: Jul 21 '17, 2:12 p.m.

Question was seen: 2,040 times

Last updated: Jul 24 '17, 3:14 p.m.

Confirmation Cancel Confirm