Automation For Jira - Using an automation rule to close or resolve a Jira issue will result in an issue without any resolution set
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
When using an automation rule (from Automation For Jira) to close or resolve Jira issues, the issue ends up in a closed status without any resolution set, as illustrated in the screenshot below:
However, when the ticket is resolved or closed via the UI, the issue has a resolution set:
The purpose of this article is to explain why this behaviour might happen and how to fix it.
Diagnosis
Take a look at how the automation rule is configured, especially the action that is transitioning the issue to a closed or resolved status, and note that the resolution field is not set in this action.
Take a look at the list of post-functions associated with this transition in the workflow configuration, and note that there is no post-function that is setting the resolution field, but that there is a transition screen associated with it:
Click on the transition screen, and note that the Resolution field is part of this screen:
Cause
The reason why the resolution field is set when the ticket is resolved via the UI while it is not set when it's resolved via the automation rule is that:
There is a screen associated with the "Resolve" transition, which forces the Jira user to choose a resolution when resolving the issue from the UI
Since there is no post-function which automatically sets the resolution field upon the "Resolve" transition, the resolution field remains empty when the issue is transitioned via the Automation rule.
Solution
Edit the action in the automation rule that transitions the issue by adding the Resolution field via the menu Choose field to set..., and by selecting a default value (for example "Done" as illustrated in the screenshot below):
Was this helpful?