Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Additional individual counter on Workitems

Hello,
we have the requirement to add an additional counter to specific work items (when created from a specific template).
Do you have any suggestions how to do this?

Thanks!

Gerald

0 votes



One answer

Permanent link
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

0 votes

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.

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,939

Question asked: Feb 25 '15, 4:18 a.m.

Question was seen: 3,078 times

Last updated: Mar 30 '15, 9:40 a.m.

Confirmation Cancel Confirm