The workflow transition should set the Resolution field using theĀ Update Issue Field post-function. Your automation can then call said transition.
It looks like you're new here. Sign in or register to get started.