JMCF incorrectly re-indexes stale subtasks

Description

When using a post function that transitions a sub task, after the transition has taken place the sub task is updated in the database but when the Misc Custom Field plugin is installed and enabled the index does not show the new status.

This is due to the ReindexSubtasksEventListener. It is submitting stale issues for indexing rather than fetching the parent from the database to ensure that the data is live (this is a known problem with events in JIRA). This results in the index having the old version of the subtask.

Environment

None

Customer Info

None

Assignee

Unassigned

Reporter

David Fischer [Innovalog]

Labels

None

Internal Complexity

Unknown

Internal Value

Unknown

Requires documentation

None

Impact

None

Fix versions

Affects versions

Priority

Major
Configure