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
Comments
Comment, I appreciate the links however, I am having some difficulty trying to download this information form the Link. The server where my RTC is located has no access to the internet. Secondly, The version of IE we use her on my government location is not complatible with IBM Blumix DevOps. I can see the code with Firefox howver, I cannot see a way to download it.
Do you have any suggestions on how I can download and import this into a project on my RTC server?
I am not a developer so please be patient with me, I just want to find a solution to my issue.
Sorry, I can't help you with that. Get a machine with internet access and install a vanilla RTC client to download the code. I can't attach or send that code.
Comments
Donald, I appreciate your answer, however, I understand how RTC works and why. What I need is a method to implement my own sequence. I do not want the new attribute filed to supercede the actual work item ID, I simply want to be able to increment an additional value that will increment each time a new work item of that type is created. Currently, I have to input these values manually buy looking at the last number in my query.
What I am hoping to do is to automate that process. I am sure this can be done with a script, however, I do not have the knowledge to write such a script and am looking for assistance from the forum.
Do you have experience with value provider script customization?
If you want to use a client side JavaScript (calculated value or something else), you have some undesired results. For example, if two users try to create the same type of work items at almost the same time, you will end up with the same "sequence number". Also, there is no easy way to get the "maximum" number for a particular type on the client side. Besides, there may be performance hit if such query is run quite often. There are some of the reasons that I suggest against the "client side" idea.