Adding periods and assigning to anther period

I have the following rule:

rule When updating time estimates refresh sum

when Dev Estimation.changed || Test Estimation.changed || Doc Estimation.changed {

  Estimation = Dev Estimation + Doc Estimation + Test Estimation;

}

Where Estimation, Dev Estimation, Doc Estimation, and Test Estimation are all periods. The conditional appears to work, however the sum does not as there appears to be a type error involved:

"Cannot convert 0PT2H to org.joda.time.Period (initialscript.js#133)"

All I want to do here is add three periods together and assign them to another. How can I accomplish this?

 

I did see this page, I was unable to get an answer from it: https://confluence.jetbrains.com/display/YTD65/Workflow+Language+Quick+Reference#WorkflowLanguageQuickReference-Period

6 comments
Comment actions Permalink
Official comment

Unfortunately, it's not possible yet. Please vote/comment for the feature request: https://youtrack.jetbrains.com/issue/JT-18128 .

Comment actions Permalink

Is there some kind of work around, such as being able to parse out an integer and then assign that to the estimation field? This is a very simple operation in concept, I am not sure why you guys chose to leave this functionality out.

0
Comment actions Permalink

Unfortunately currently there is no workaround available.

0
Comment actions Permalink

How do we get that issue escalated? It was submitted Jan 2013 which seems to suggest there is little interest in adding it. This is kind of a big deal for us.

0
Comment actions Permalink

Any update on this? Have you guys had a chance to make a decision regarding getting it into a future version?

0
Comment actions Permalink

As I can see the responsible developer answered you in tracker already. Sorry for the delay and thank you for patience.

0

Please sign in to leave a comment.