It's all about the answers!

Ask a question

I'm using RTC V5.0.2 and I want to add a field which has the number of days between the current date and the work item creation date


Abdelrahman Hassan (19422) | asked Nov 16 '15, 8:11 p.m.
I'm using RTC V5.0.2 and I want to add a field which has the number of days between the current date and the work item creation date.

For example :
Creation Date : Nov 10, 2015
Current Datte: Nov 17, 2015
The new field to populate as 7 days 

One answer



permanent link
Donald Nong (14.5k614) | answered Nov 17 '15, 1:19 a.m.
You will need to do some customization to achieve this. One way to do it is as follows.
1. Create a new attribute of the integer type.
2. Add a calculated value script to calculate the value when the work item is modified.
If this sounds alien to you. You should start with the below articles.
http://www.ibm.com/developerworks/rational/library/rational-team-concert-calculated-fields-work-item/
https://jazz.net/library/article/1003

Strictly speaking, such attribute will not contain the "true" value because to maintain a "true" value, your work items have to be changed constantly, or at least daily, which does not make sense at all.

If you want such field just for reporting purpose, you should explain how you would use it so that other options can be considered.

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.