I both set the configurations below in Jira project workflow:
[1] Closed properties jira.field.resolution.include(no matter what values)
[2] Add Resolve Issue Screen to Closed
Then when I try to use java jira-api(7.13.8) IssueService validateTransition to transition some statuses to Closed, I met an error in the validation result:
Error key: resolution
Error value: The selected resolution cannot be chosen during this action.
And I can not transition an issue with an invalid validation result. Is this a bug of Jira? Any solution to bypass it?
You'll need to use the numeric ids for the resolutions (the "no matter what values"), comma-separated. The easiest way to get them is to edit the resolution and to check the "?id=" at the end of the URL. The number there is what you need in this property - you probably want multiple values, separate them by a comma (no space).
Example: 5,23,1775
Hi,
Yes I have set them using comma to split.
It could go well and transition successfully through the UI browser, but doesn't work when I use API to do the transition, validation couldn't pass, error reports as 'The selected resolution cannot be chosen during this action.'
It's weird that good result from UI but blocked when use API to call. Do you have any idea?
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.