It's all about the answers!

Ask a question

Change the work item id of a specific work item type

Abuzaid Shaikh (89146) | asked Apr 08 '13, 11:30 a.m.
edited Apr 08 '13, 12:12 p.m. by Ralph Schoon (63.3k33646)
We have a work item type 'Project'.
Need to Change the Work Item id of ‘Project’ work item type
 whenever a new Project work item is created, Instead of system generated work item id, we want a customized id.
The id should be of the format YYXXX (where YY is the Year and XXX is the number starting from 001 and incrementing it)

Is it Possible?

2 answers

permanent link
Kevin Ramer (4.5k9185200) | answered Apr 08 '13, 11:36 a.m.
I doubt this can be done.  The ID is stored in the database as an Integer, not a string.

permanent link
Ralph Schoon (63.3k33646) | answered Apr 08 '13, 12:03 p.m.
edited Apr 08 '13, 12:03 p.m.
I second Kevin,

the ID is managed by the repository. You can normally not select it yourself. If you try, you could get into real trouble. I would suggest to use a custom attribute to store an "ID" in the format you want.

See lab 4 and 5 for approaches that would allow this. 

Your answer

Register or 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.