I need to automatically reduce the original estimate of the task once a bug is linked to this task and the original estimate of the task has to be reduced by the value of original estimate of the bug linked.
Basically, it has to work just as when you have a story and the remaining time is reduced when you log work in subtasks under this story.
I am using a Jira automation and have found a way to set original estimate of the task from the one in the linked bug but I need some kind of formula to reduce the time in the task.