Incorrect resolution ID mapping during post-function migration

Problem:
In Workflow post-function for transition, field value for resolution is not set/migrated properly from source to target instance.
The same scenario could be observed with priorities as well.
When migrating workflows from Jira 8.x.x to Jira 8.x.x or to 9.x.x the resolution field in post-functions might not transfer correctly.
Incorrect resolution assigned to issues after the workflow transition.

Cause:
Jira 8 uses a direct ID for the resolution field, while Jira 9 references the resolution object.

Jira 8.x.x

Screenshot 2024-07-30 at 17.05.06.png


Jira 9.x.x

Screenshot 2024-07-30 at 17.06.27.png

Source:


Target:





This issue primarily occurs when the target Jira instance does not contain a resolution with the exact ID specified in the source instance's workflow post-function.
This discrepancy between the source and target environments is the root cause of the problem.

Solution:
Manual Recreation: Delete the existing post-function and recreate it with the correct resolution in Jira