We have a rule with scheduled trigger that searches issues of type message in status open that have a link.
These messages will be transitioned and a branch for the linked issues is opened.
With some conditions the linked issues will be transitioned too. With some further conditions in a second step a date value is set.
If more than one message is linked to one issue, we have this issue more than one time in the branch and therefore the rule tries to transition the issue more than once. One of the conditions checks for the status, but the issues seams not to be handled serialized and we get the following error.
Error marking step #268311 finished: root cause: Tried to update an entity that does not exist.
How do we avoid this error?
Is the bulk handling option for the trigger or the branch useful in this case?
I found that in this case the audit log only holds information about one issue instead of all. This makes troubleshooting more difficult.
Is it an option to provide a transition from the destination status to itself?
Update
I activated the bulk handling options, but it makes no difference.
I found another rule that gives the same error under different circumstances.
I get the error mainly if more than one issue gets inside the branch but sometimes also if it's only one.
With that information I don't believe that an additional transition will help.
I assume that it could help to combine the transition and the last step.
In this last step I set MyCustomDate to the value of the trigger issue if that is newer. Currently I use a JQL condition
MyCustomDate < {{triggerissue.MyCustomDate}}
But how can I combine this condition inside the transition?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.