(Server Side) How to set the workitem Custom attribute to readonly ?

One answer

Hi Anil,
- In the Eclipse client's Team Artifacts view, right click on your project area and select Open.
- Click on the Process Configuration tab.
- Expand Team Configuration
- Click on Permissions
- In the Permitted actions box, expand Work Items > Save Work Item (server) > Modify the work item
- Uncheck the box next to your custom attribute
Be sure that you modify the permissions for every role type. If a user is permitted the action with *any* of the role types, he will be permitted to do to the action.
Comments

Hi Lauren
Thanks for your reply. Iam looking for the Programmatically setting the attribute behaviour to read only . Iam not seeing any "set" method under IAttribute. Can you please provide some suggestion how to set the "Readonly" behaviour on the Workitem attribute (through server side coding)

Hi Anil,
I'm not sure how to do what you're asking. The best I can think of is to point you to https://jazz.net/library/article/997. Perhaps someone else has some ideas.