No UI for configuring preconditions/followup of com.ibm.team.process.server.saveProjectArea
We are in a situation where we want to implement a precondition when saving "save project area".
We sadly discovered that "saveTeamArea" operation doesn't apply when saving the project area itself, and there wasn't any other operation that seems to suit in the "Operation behavior" configuration inside the "Process configuration" tab of a project area.
But by doing some searching*, we found out that there is com.ibm.team.process.server.saveProjectArea operation, but it doesn't have a way to be configured through the UI. We tested it and it works.
Our use case is to disallow the use of certain roles. There are certain roles that we prefer normal users doesn't have (just certain devops), but we still want Area administrators to manage users by themselves (only disallowing assigning those concrete roles).
Is there a reason it is not present in the UI? Can it be added to it in the future?
4 answers
I would assume that it is internal and always configured.
See https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/ for how to extend RTC and follow the link "Find Extensions Points and operation ID’s; see this Wiki Entry for extension points and operation ID’s; look into the Interesting Links page for more hints" to have a look which operations you can hook up to.
See https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/ for how to extend RTC and follow the link "Find Extensions Points and operation ID’s; see this Wiki Entry for extension points and operation ID’s; look into the Interesting Links page for more hints" to have a look which operations you can hook up to.
Comments
Thanks for the reply.
My concern is not how to implement it, but more on why it is hidden. Essentially, because it is harder to maintain the configuration. For knowing if the project is configured with our precondition we would need to check the XML configuration.
I would assume because all non hidden stuff needs to be documented etc. People would ask for more UI options and the like. At some point that s impossible to maintain. You can decide to create an enhancement request for your use case.
There is no way to configure pre-condition or follow-up action for saveProject operation right now. This is the expected behavior. We don't support it because we have no need for a pre-condition for it.
We have need of com.ibm.team.process.server.saveProjectArea follow-up action to be able to run our own customization in project areas. ;)We don't support it because we have no need for a pre-condition for it.
We use it with success, even we notice a strange behavior: if the current user is not a member of the project area, but he belongs to JazzAdmin, he can save the project area (got ovverride permission message) but the follow-up action then is not run.
Comments
Jim Ruehlin
JAZZ DEVELOPER Dec 17 '13, 9:04 p.m.Can you clarify what your use case is here? Are you trying to prevent a certain role from saving the project? Or are you trying to stop the project from being saved if it includes some type of role?
Gabriel Lopez de Armas
Dec 18 '13, 4:49 a.m.The second.