It's all about the answers!

Ask a question

Can we write plugin for "Only Project Manager can close the request" in work item type.


Rahi J (29330) | asked Aug 04 '15, 2:52 a.m.
 Can we write plugin for "Only Project Manager can close the request" in work item type.  If yes then also let me know how to write this plugin code.

Accepted answer


permanent link
Ralph Schoon (60.9k33643) | answered Aug 04 '15, 3:12 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.


Ralph Schoon selected this answer as the correct answer

Comments
Rahi J commented Aug 05 '15, 12:24 a.m. | edited Aug 29 '15, 10:22 p.m.

 Thank You Ralph :)

One other answer



permanent link
Ralph Schoon (60.9k33643) | answered Aug 04 '15, 3:01 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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/

Your answer


Register or to post your answer.