I'd like to store system events (worklog created/updated/deleted) using a custom made JIRA add-on. Is there a way to use the running transaction that was created in JIRA for the worklog changes? I would like to be sure that when a new worklog was created, updated or deleted it is also stored in another table.
If events are not fired in the same transaction (which is my assumption) I will have to create a cron job that synchronizes my table with the worklog table.
Community moderators have prevented the ability to post new answers.
Hi Alain,
I think you need to create a plugin that comprises event listener: https://developer.atlassian.com/jiradev/jira-platform/guides/other/tutorial-writing-jira-event-listeners-with-the-atlassian-event-library.
All worklog events that you need are on place: https://docs.atlassian.com/software/jira/docs/api/server/com/atlassian/jira/event/type/EventType.html
Hi Volodymyr,
Thanks for your answer. I already created a plugin and I already catch the events. I just would like to know, if there is a way to handle the events in a transactional way. With transaction I mean the JDBC transaction started to save a new worklog into the database.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alain,
As I know JIRA API does not expose transactions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.