Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi folks,
I've set up an automation that sets the estimates to 0 when a worklog is created, updated and deleted.
The problem is that when an issue with logged work is deleted the rules fails and I keep getting failed notifications.
I have many automation rules set up, but none of them fail when deleting an issue.
Is there any way to stop this?
Here's the automation and the error:
And here's the JSON I use to update the estimates:
{
"fields": {
"timetracking": {
"remainingEstimate": "0",
"originalEstimate": "{{issue.timetracking.originalEstimate}}"
}
} }
Hi @Krzysztof Kiser,
The behaviour you see seems perfectly logical to me. When you delete an issue, the associated worklogs are deleted as well. That last event then triggers this rule that tries to edit fields on an issue that no longer exists, which is obviously not possible.
Unless deleting issues is a very common practice, I would not worry too much about the error generated by the rule. I'd rather recommend to make sure issues don't get deleted, but rather get cancelled via your workflows. At least you won't lose those time spent metrics that way and Jira is perfectly capable to store many, many issues.
This problem is when you delete the issue it is also deleting the worklogs and there is no longer anything to update. You will need to have a condition to make sure that the issue is not deleted before you run your edit issue field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can you please explain me what exactly is happening specially the last line:
{
"fields": {
"timetracking": {
"remainingEstimate": "0",
"originalEstimate": "{{issue.timetracking.originalEstimate}}"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.