Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Closed status with jira.field.resolution.include can't pass IssueService validateTransition

Ying Ma
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 14, 2020

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?

1 answer

0 votes
Francois Bachmann April 30, 2020

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

Ying Ma
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 6, 2020

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.

Suggest an answer

Log in or Sign up to answer