It's all about the answers!

Ask a question

Is it possible to use an attribute with the type 'Duration' in a customized script?


De'Shea Bennett (166) | asked Apr 11 '13, 1:31 p.m.
edited Apr 16 '13, 3:12 a.m. by Ralph Schoon (63.1k33645)

Is it possible to use an attribute with the type 'Duration' in a customized script?

I want to calculate the Percentage complete by subtracting the estimated hours from the remaining hours; but the estimated hours is of type 'Duration'. It is not an integer.

One answer



permanent link
Ralph Schoon (63.1k33645) | answered Apr 16 '13, 3:26 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi,

as far as I can tell this is possible. As far as I am aware the duration is time in milliseconds. In any way the AttributeValueAnalyzer in Lab 5 of the Process Enactment Workshop shows how to access the data. The workshop also shows how to convert and calculate with script based attributes using parseInt(). I am sure there are other ways to do it using JavaSript or Dojo I am not even aware of.

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.