I'm trying to build a Calculated Number field where the field value increases by one every time someone edits an issue, so that users can see how many times that particular issue has been edited. Is there a way to do this using a Groovy script that gets the edit history of the issue? Or perhaps a smarter way to go about the whole process?
Thanks!
Hi there :)
This may do the trick:
def changes = ComponentAccessor.getChangeHistoryManager().getChangeHistories(issue)
changes.size
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.