We have a transition Any -> Done in our workflow, which is also used by an external tool to close specific task issues via API (those issues that the tool also created in the first place).
We noticed that tickets closed via the API did not contain a set resolution leading to some issues, so we tried to follow the best practice guide: https://support.atlassian.com/jira/kb/best-practices-on-using-the-resolution-field-in-jira-cloud/
There was already a screen assigned to this transition and when manually finishing an issue this screen enforces a set resolution, so far so good.
In addition, we added a Perform actions rule intended for the API usecase. This rule does the following:
Rule: Update a work item field
Update this field: Resolution
The value will be set to done
This works fine for the API-based closure of tasks, but when we close an issue manually, no matter what is selected in the screen, the resolution is now also always done. The perform action seems to overwrite the user choice.
Is there a way to configure the workflow to apply a default resolution value, only if none is set? Or to differentiate between API-triggered transition and manual UI-triggered ones? Is the KB article outdated, since it also mentions post-actions which seem to have been at least renamed to Perform action rules?