Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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. :!:

0 votes



3 answers

Permanent link
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
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. :!:

0 votes


Permanent link
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?

0 votes


Permanent link
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.

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,952

Question asked: Jun 03 '10, 5:11 a.m.

Question was seen: 7,927 times

Last updated: Jun 03 '10, 5:11 a.m.

Confirmation Cancel Confirm