How do I hide creation options when the permission has been removed?
Accepted answer
Comments
I like the idea of adding some static text to the top of the retired workitem types.
Another thing you can do is to provide a custom error message to show for the Work Item Save operation when permission is denied. The error message would be shown for any permission problem saving workitems (not just these particular workitem types), but it still might be useful. Something like, "If you're trying to create a Defect or Enhancement workitem, note that these types are retired. Use Bug or RFE instead."
If that would be useful to you, the option to add a custom explanation is available when you select the "Save Work Item" element in the permission configuration UI.
One other answer
Comments
Hi Eric, the trouble with the Default Value Provider will be that it is across all work item types that have this attribute. So any work item that uses this attribute will be affected.
A better approach would be a new and special attribute with a default value provider that is added to the types not in usage anymore.
agree Ralph :)