Is it possible to retrieve an issue's links in an event listener when the issue is deleted?
It appears that the links have already been deleted by the time my event listener is triggered. What I'm trying to do is update issues that are linked to the issue that is being deleted.
Community moderators have prevented the ability to post new answers.
By the time an issue is deleted, all the related records like links are deleted. Event doesn't contain these details as Maxim mentioned.
Updating JIRA source is one option but you might also want to look at writing a plugin that gives a custom delete operation instead of the standard one. You can then disable the standard one and use the custom operation to store the link details or send it in the event so listeners can process it!
Nope. Not yet. See https://jira.atlassian.com/browse/JRA-8505 . Same applies to Delete.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
No way to do this without correct JIRA source code, because issue data for event not contains info about links. It has issue self, customFieldValues and watchers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For other event types, I can retrieve the issue links from the issue passed into the event handler, but the links are missing by the time the handler is invoked for a delete event. So it appears that JIRA has already partially deleted the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You right. For all others events you can get links, but delete event is 'special'.
Delete operation looks like:
- save issue(just like "table row") self, customFieldValues and watchers in event data object
- removeWorklogs (it meant, what you not get not only link, but worklogs too)
- remove sub-tasks
- remove links (!!!!!)
- remove history
.....
- dispatch Event (with event data object from first point)
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.