Additional individual counter on Workitems
One answer
One way would be to add an integer attribute then use a value provider script to do the counting.
http://www-01.ibm.com/support/knowledgecenter/SSYMRC_5.0.1/com.ibm.team.workitem.doc/topics/c_customizing_attributes.html?cp=SSYMRC_5.0.1&lang=en
https://jazz.net/library/article/1003
Comments
Problems I see when trying this:
- Scripts can run multiple times concurrent. How would you make sure the number is unique in a script?
- How would the script know the item is created from a template?
The JavaScripts are actually thread-safe per Rhino...
If you create a well know task "Profile Marker" and made the templated work item related to the count keeper (but did not check the Profile Marker in the template so it was linked to the original item), then you could see that you created the item from the template because it is linked to the Profile Marker.
The counter would have to stored somewhere.