Structure Gantt fields in estimate attribute formula

Antonio Prioletti April 16, 2021

Hi guys,

I'm trying to use the Structure Gantt fields in the Estimate attribute formula

 

with delta_days = DAYS_BETWEEN(DATE_ADD(GanttStartDate, duration, "days"), TODAY()):
with sum_from_today = delta_days>0 AND !DEFINED(ActEnd):
with ms = delta_days*8*60*60*1000:
IF(sum_from_today > 0; RemainingEstimate+ms; TimeSpent+RemainingEstimate)

but I'm getting this error: 

Invalid attribute specification, please ensure that correct 'id' and 'format' properties are specified.

If I try the same formula in a column structure, it works perfectly ( I have tried to just create a column in the structure, but after isn't usable as Estimate ). 

Any idea? 

PS: what I'm trying to do here is to have an estimate that is dynamic and, if a task end is estimated to be before today, it adds up the delta from today and the planned end.

 

Thanks,

Antonio

 

1 answer

1 vote
alexeypegov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 17, 2021

Hello Antonio!

This is Alexey from ALM Works.

Just to clarify, "GanttStartDate" is a Gantt own attribute (like "Gantt Start" or "Gantt Finish")? If "yes", then it won't work, because in order to calculate estimate, Structure.Gantt needs to calculate the schedule itself, and in order to calculate the schedule, it should know the estimate. So we have a loop here. 

If you need to use Gantt own attributes here, please, use Structure Effectors (and sync values at least once to Jira) and then use resulting Custom Field in the formula. The idea is that formula should not depend on Gantt own attributes anyhow.

Hope it helps!

Best regards,

Alexey

Suggest an answer

Log in or Sign up to answer