RTC - how to reset record id for a project area?
![]()
I have a set of problem tickets currently managed in a spreadsheet. I am evaluating RTC to see if we can switch to it for managing the tickets. I'm able to create a customized work item and add custom attributes as well as create an editor presentation for editing the customized work item.
When i created my first work item for the project area, the internal record id is not 1 but rather 1481. Is there a way to reset the record id counter back to 1 for the project area? I want to import the problem tickets using the CSV format but want to retain the original ticket numbers which start at 1. I'm using the RTC 3.0.1 Eclipse UI client but I haven't come across anything in the UI that allows me to reset the internal record id counter. Is it even possible? The RTC installation I'm using is shared by several other project teams so it seems the record id is being shared across all the projects? I would like the record id to be unique to my project area. If I attempt to import my problem tickets by CSV and set the Id field using my original ticket numbers what is going to happen? Would it overwrite existing work items of the other projects? |
Accepted answer
4 other answers
![]()
Geoffrey Clemm (30.1k●2●30●35)
| answered Aug 28 '14, 5:54 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Whether or not you are migrating, if you actually want to control the values that show in an "ID" field, then you will want/need to create a custom ID property, with your own custom work item save process adviser code that initializes that custom ID property. For example, if you want that ID to be project area specific, and not have gaps, you would need to use that custom ID field.
Comments Nice tip. Is there an example of setting this up somewhere? Can you override the system wide work item id with the custom ID when displaying work items in query results? That is, do we have edit control over the layout of the query results? If I could hide the system wide id and just show the custom ID in certain query results, this might make it more palatable.
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
You can control the editor display and the query-results display to show your ID in a very visible place, but the system-defined ID is hardwired into a few critical places like the "search" box and in the work item URLs. So the more prominent you make your ID, the more likely your users are to make the mistake of using your ID in those places where the system-defined ID is expected.
|
![]()
Hi All,
I too have similar requirement. Is there any other solution than adding custom ID.
Can I set some value with admin access so that next newly created Work Tickets should start from No-1000 ?
Or Can I change existing WT ID with different value?
Thanks,
Kavita
|
![]()
Hi All,
I too have similar requirement. Is there any other solution than adding custom ID.
Can I set some value with admin access so that next newly created Work Tickets should start from No-1000 ?
Or Can I change existing WT ID with different value?
Thanks,
Kavita
|
![]()
Ralph Schoon (61.8k●3●36●43)
| answered Feb 15 '16, 8:37 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Please see this community contributed extension for creating a custom consecutive ID: Extension to generate unique custom work item numbers
Comments Thanks Ralph for your valuable input.
Ralph,
I am mot the creator of the extension. As I think it comes with code, I would suggest you understand the code and make it work for you.
Thanks for your quick response !
1
If you import CSV and provide the ID and activate updating the items, then the items found by ID are updated. Otherwise leve the ID column out and a new ID is created starting with the last available ID in the repository.
I am using create option instead of update and providing a column with name "Id" in csv which have custom Ids.
1
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
To be honest, I don't understand what you are doing, trying to do and what environment you use. If you provide the ID in an import without update mode with CSV, the importer will try to use the ID given (I think as I have done that years ago). If that is already taken it will take an ID that is not, You can't be sure that the work item will actually have the ID. You can update If you provide the ID
PS: RTC will start with the highest given ID fr the next one. If you are not careful, you can run out of ID's if you start with a really big value.
showing 5 of 8
show 3 more comments
|