I have created a jira automation rule, that updates some confluence page when the status of an issue is transitioned to 'done'. Now problem arises when two people or say some script simultaneously update the status multiple tickets. In that case my automation rule fetches the same content of the page to be updated before sending another post request with only one of the updates of the two(race condition to be precise).
So I wanted to know if there is a way to resolve this using some kind of locking in jira?