I have a custom field in a task that I want to increment by 1 by a remote service.
That service will have several instances running asynchronously, and each needs to increment the field by 1 when it's done. The field represents the number of times the services ran. Once the field reaches a certain value the task will transition to the next status.
The only option I've found is to get the field's value, increment it by 1 and update it.
My issue with this solution is that it is not thread-safe and the services updating the field may retrieve false values.
Is there a better solution?
Is it possible to use a different mechanism or something other than a counter field to achieve the same result?
Hi @Shay Yacobinski ,
It does not make much sense to do the count on the issue level.
My approach would be to:
Let me know if it makes sense.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event