I have automation set up so that when an issue transitions into status X it will automatically close it if a certain field is set. When I look at the audit log, sometimes it completes with an error (see below). The "Resolution" field is not used by the rule at all, so why is it complaining about it?
The audit log has this in it:
The following issues passed:
EKM-5064
Unknown fields set during transition. Field may not be on transition screen. Fields ignored -
Resolution (resolution)
Transitioned issues to
Closed
Instead of transitioning the issue and setting the resolution in one action, try splitting them.
So, transition the issue, then create a new action to update the resolution.
For example:
This solved my issue, and your answer was not even accepted.
I corrected this mistake. Thanks for the tip. Automation seems to hate when you change the Resolution on a transition block. I don't know why though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Robert Horan I have been getting less errors from the automation recently. I just checked the last error and got this:
I get "Destination status could not be resolved".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@phil.americus Sorry for the delay in responding! I didn't see this until now. Destination status could not be resolved sounds like there is no transition available.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Has this been resolved? I just met the same issue. The following error message displayed:
"Unknown fields set during transition. Field may not be on transition screen. Fields ignored -Resolution (resolution)"
I checked 1) the Workflow Post Function never set the resolution value, 2) Not select resolution in Automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Olive Sun
I fixed that issue by setting a transition screen (I used Transition: Comment Only) for that transition.
Sankalp
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Robert Horan @phil.americus We have two different processes at work. The error is coming from the Automation and not a Post Function of a workflow transition.
Also, Jira built-in System Events states
Issue closed : An issue has been closed. (Note that an issue may be closed without being resolved)
If we can assume...
Then perhaps this is what's going on.
The solution could be...
I am of the belief that the System Events are apart of the Legacy Automations that Jira says they want to deprecate. Also, my apologies is not written as a 1:1 to the fore mentioned use-case. Solution bullet #1 may be all that you need to do.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Agreed, rather than not defining a resolution as my last image shows you should deselect Resolution from the option "Choose fields to set..."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Clark Everson , @Ravi Sagar _Sparxsys_
Here's the post functions that I have:
To state X:
The following will be processed after the transition occurs
From X to Closed:
The following will be processed after the transition occurs
The "Resolution" field never gets set.
There is one transition screen that sets the Resolution when moving to the Resolved state. Even when setting the state to Resolved and then to X, I also get the same error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you trying to set the resolution from the workflow or from the automation? Whichever one you did maybe also try doing the other. If in the automation that you haven’t done it for have that be the first action to complete
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Robert Horan Hi. Since it happens infrequently, I haven't had the time to look into it any deeper, I just delete those emails.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The error seems to be indicating towards an issue with the transition screen.
As suggested by @Clark Everson check your workflow transition's post function, check if some field values as set and are those values there in the transition screen or do you even have a transition screen?
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How is the automation set? And are their workflow triggers that set fields?
I would check the automation and possibly share that as well.
the only other place based on what I see is the workflow itself. This automation seems to trigger a transition change to closed. It appears that resolution is set to do something(which it should do something). You should make sure the resolution is still being set.
if that isn’t it I think we need more information though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.