I have come across a requirement where I need to persist issue information to an external database while creating or editing the issue. If It encounters any error while persisting to the external db, jira issue operations also should be rolled back at the same time.
I have implemented a listener plugin to persist into external database but I have come across that Jira db operations cannot be rolled back with listeners methods.
Can you please suggest any workaround to get the rollback functionality in Jira?
Community moderators have prevented the ability to post new answers.
No. Jira simply doesn't have an "undo" structure. You could structure your workflows so that they have transitions in the reverse direction, but you'll still see the forward/backward step in the history. For edit, there's nothing you can do in the UI.
If you're coding, you could look at writing something into your listeners that goes back and destroys the issue history you are generating after the "go back" transitions have executed, and after each edit that needs to be undone.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.