Prevent-Edit property of Work Item does not apply to Adding Links from Other Work Items
Using RTC version 6.0.4, I can set a precondition to prevent editing of a particular Work Item type if it is in a specified state.
For example, a work item of type 'Epic' can't be edited when in a state of 'In Progress'.
This precondition prevents me from adding any links to any Epic when in a state of In Progress.
I can, however, add links from other work items to this Epic indirectly - which should be prevented as well.
How do I prevent any editing of this epic, including linking with new work items?
Accepted answer
Strict Group policy is obviously something totally different than this one. This one would have to detect the link change the other one detects the work item save.
To repeat myself here and add an option:
I think if it is not implemented as you assume the options are
-
A defect if you thin this is a defect
- An enhancement request to get what you want
- An additional advisor that adds your rule and keeps the old functionality to stay compatible - which is also an enhancement request
- A custom advisor you create yourself
2 other answers
But RTC does have the ability to check the "parent artifact". In the case of "Strict Group" policy, which Requires all children to be resolved before the parent can be resolved, and requires the parent to be open before a child can be added or re-opened.
Here I am checking the parent state before I am able to reopen the child.
I believe this is an oversight from IBM on the "Prevent Editing" advisor and without this functionality we have no way to freeze the scope of the Epic.
Adding a link to something is never considered a modification of that thing. You can add links from web pages, in email, and a wide variety of other places, none of which can logically be prevented (nor should it be).