Can we write plugin for "Only Project Manager can close the request" in work item type.
Accepted answer
To be honest, that extension is not even necessary. You can revoke the permission to save in the closed states for all roles not being Project Manager.
You should probably familiarize with the basic process configuration options like Process permissions lookup in Rational Team Concert before trying to write extensions.
You should probably familiarize with the basic process configuration options like Process permissions lookup in Rational Team Concert before trying to write extensions.
One other answer
I don't know if you can write these kinds of extensions. However here are examples that come pretty close and should give you enough code to achieve what you want if you carefully follow the posts and the enclosed links.
Almost what you want:
https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/
How to find the roles of a user:
https://rsjazz.wordpress.com/2015/06/19/a-custom-condition-to-make-attributes-required-or-read-only-by-role/
Almost what you want:
https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/
How to find the roles of a user:
https://rsjazz.wordpress.com/2015/06/19/a-custom-condition-to-make-attributes-required-or-read-only-by-role/