RTC and SVN work item validation
We have RTC linked to Subverion Revisions. We have realised that it is possible to link an SVN revision to a non existant RTC work item during the commit stage. Is there a way to possibly run some pre-commit hooks thats will/can check to see if the work item exists and belongs to the user performing the commit action?
RTC 2.0.0.2. Tested on Windows and Linux. :!: |
3 answers
The Eclipse Subversion clients do not support this type of validation.
However, it would be possible to write a server-side validation script that would fail the commit if the work item wasn't valid. The article http://jazz.net/library/article/194 describes how this could be done with GIT but it should be possible to do for Subversion as well. Michael jem290 wrote: We have RTC linked to Subverion Revisions. We have realised that it is |
In version 3.0,
in the Eclipse-properties, Jazz Work Items there is an option Prompting to activate ("Prompt on commit if a work item number is not provided") I thought, that option will validate the number before commiting, but it doesn't. So what is the function of this option? |
I believe that option is there to ensure that the field is not blank. However, the SVN client doesn't provide any API to allow us to validate the field content in any way.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.