work item customization: Attributes computed
![](http://jazz.net/_images/myphoto/ebf9b3e0d1d84305915c7118bbf704eb.jpg)
3 answers
![](http://jazz.net/_images/myphoto/ebf9b3e0d1d84305915c7118bbf704eb.jpg)
Hi
I can see two possibilities:
A) Compute the value when needed: You can look at all item states of the work item and count how often it was in the desired workflow state. This means nothing is stored in the work item, but the value is computed on-the-fly
B) Use a Precondition/Follow-up action (not sure which one, you would have to be able to change the workitem from that so I think Precondition could work better) and, whenever the work item is saved with a workflow action leading to the desired workflow state, inrease the value of your count attribute on the work item.
Regards
Marcel
Jazz Work Item team
I can see two possibilities:
A) Compute the value when needed: You can look at all item states of the work item and count how often it was in the desired workflow state. This means nothing is stored in the work item, but the value is computed on-the-fly
B) Use a Precondition/Follow-up action (not sure which one, you would have to be able to change the workitem from that so I think Precondition could work better) and, whenever the work item is saved with a workflow action leading to the desired workflow state, inrease the value of your count attribute on the work item.
Regards
Marcel
Jazz Work Item team
![](http://jazz.net/_images/myphoto/ebf9b3e0d1d84305915c7118bbf704eb.jpg)
marcel_bihr@ch.ibm-dot-com.no-spam.invalid (zrlmbi) wrote in news:h31k56
$a4k$2@localhost.localdomain:
Thx Marcel,
for that I need to develop my own precondition ? (meaning the java code tha
twill be called ?)
--
Christophe Elek
Jazz L3
IBM Software Group - Rational
$a4k$2@localhost.localdomain:
B) Use a Precondition/Follow-up action (not sure which one, you would
have to be able to change the workitem from that so I think
Precondition could work better) and, whenever the work item is saved
with a workflow action leading to the desired workflow state, inrease
the value of your count attribute on the work item.
Thx Marcel,
for that I need to develop my own precondition ? (meaning the java code tha
twill be called ?)
--
Christophe Elek
Jazz L3
IBM Software Group - Rational