Is there a script to help auto Increment a data field in a work item
I need work items to increment sequentially for Rational Team Concert work items.
Specifically I have a Defect work item that has a defect number field that has the following convention (YYYY-nnn)starts with the current year and then wil lincrement 001, 002, 003.
Additionally, I have a Change Request work item that has a CR Number with this convention (Proj-CR-nnn) where Proj is the project name for the respective project, CR identified teh woek item and nnn is teh number of the CR and would increment sequentially.
Since RTC does not support independent and sequential numbering for unique work items, is there script that can be modified to auto increment a field?
2 answers
Aaron. please have a look at https://rsjazz.wordpress.com/2015/04/13/some-community-extensions-for-rtc/ especially RTC Work Item Numbering. You need to get an account on Dev Ops Services. I hope this helps.
Comments
RTC does maintain a sequence on the repository level. Since you can change the type of a work item in RTC, it does not make sense to maintain a sequence for each type. To that end, you will have to implement your own sequence, which can come in varied forms. I suggest you develop a RTC extension for this purpose. Ideally the sequence should be read and updated only on the server side to avoid conflicts. You can store the sequence (the current number) in a file on the server or in the database.