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
Please sign in to leave a comment.
Unfortunately, it's not possible yet. Please vote/comment for the feature request: https://youtrack.jetbrains.com/issue/JT-18128 .
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.
Unfortunately currently there is no workaround available.
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.
Any update on this? Have you guys had a chance to make a decision regarding getting it into a future version?
As I can see the responsible developer answered you in tracker already. Sorry for the delay and thank you for patience.