Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Smart value subtract 2 original estimate field

Ashkan Malekly
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 29, 2020

I'm writing automation that, when the original estimate of story edit or fill, then the value of the original estimate in epic (that have been added before) subtract from all the value of its original estimate of story. For example, we have epic A (original estimate is 3h) and story 1 and story 2 add to epic A. When story 1 filled original estimate 1h, the value of original estimate in epic will be 2h. And when story 2 filled original estimate 2h, the value of the original estimate in epic be 0h. I thought that I can do it with automation with smart value, but if anyone has any idea I would appreciate it.  

1 answer

1 accepted

1 vote
Answer accepted
Ashkan Malekly
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.
May 4, 2020

I found it:

{
"update": {
"comment": [
{
"add": {
"body": "#= triggerissue.original Estimate / 60 /"
}
}
],
"timetracking" : [
{
"edit": {
"originalEstimate" : "#= (issue.original Estimate / 60) - (triggerissue.original Estimate / 60) /"
}
}
]
}
} 

Michael Marriott March 31, 2022

Hi Ashkan,

I'm keen on automating update of the {{issue.original Estimate}} field but the documentation does not make the "original estimate" field available. How is it possible that you can reference this attribute?

i.e. (issue.original Estimate / 60)

Suggest an answer

Log in or Sign up to answer