Steps to Create
1. Project role for Developers
Verify that your Jira instance has a project role that includes the necessary developers. If that role does not exist, create one and add any necessary team members; see this page for more information: https://support.atlassian.com/jira-cloud-administration/docs/manage-project-roles/.
2. Add Assign to last role member post-function
Log in to your Jira instance as an Administrator.
In the upper right corner of the window, click Settings ( ⚙️ ) and select Issues.
In the left-hand sidebar, click Workflows.
From the list of Workflows, click Actions ( ) for the appropriate workflow and select Edit.
Edit the transition:
When viewing the Workflow in Diagram view (Figure 1, right), select the Transition and click the Post Functions link. Click Add post function at the top of the list of existing post functions.
When viewing the Workflow in Text view, click the name of the Transition then select the Post Functions tab. Click Add post function at the top of the list of existing post functions.
Select Assign to last role member (JMWE app) from the list of post-functions and click Add.
3. Configure the post-function
Set the following configurations (Figure 2, right):
Issue(s) to operate on - Set Target issue(s) to Current Issue.
Project role
Set Project Role to the project role you created for your Development team, e.g. Developers.
Set Options as needed. See Project Role Options, below, for more information.
Conditional execution - Set as needed.
Run As - Set as needed; it is recommended to leave the default Add-on user value unless required for specific reasons.
Delayed execution - Set as needed.
Click Add.
Project Role Options
The configuration of Options, above, will depend on your organizational structure and on your specific process. For example:
Do Developers close issues? If so, can a Developer reopen an issue? If Developers can close issues, they may be the assignee on the issue when it is marked Done. If so, make sure to check Include Current Assignee so that if the Developer who last worked on the issue also reopens it, it will be assigned correctly.
Can only non-Developer (e.g. QA, Support, or Project Management) team members close an issue? - You do not need to check Include Current Assignee.
You’re done!
Now, when a closed issue is reopened it will automatically be reassigned to the last member of the Developers project role to which it was assigned.