We need to create an automation rule when I set the value of the Story Size allocation, Story point (Custome field) and original estimate, and the remaining estimate field is equal to the original estimate.
Example
If Story Size allocation = XS, Story Size = 1, original estimate = 2h, remaining estimate = 2h.
If Story Size allocation = S, Story Size = 2, original estimate = 4h, remaining estimate = 4h.
If Story Size allocation = M, Story Size = 3, original estimate = 6h, remaining estimate = 4h.
Now we run the automation and allocate the story size as XS and all te set value fields get auto-populated.
Now user add worklog = 1h
Now we want to change the story size allocation to M or S
So the fields are auto-populated but the remaining estimate is now equal to the original estimate.
I want remaining estimate = ( original estimate - worklog) from Jira automation
Please advise how to implement this using jira automation.
Thanks in advance