-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to update 'Resolution" Field #340
Comments
Any hints how to solve this issue? |
Here's how I set a resolution when transitioning some issues... however it doesn't seem to work for some types of issues. We have "Bug" and "Task" types and this works for "Task" but not "Bug": def self.close_issues(issues)
# Fix resolution
close_resolution = JIRAClient.Resolution.all.find { |r| r.name == "Fixed (Done)" }
issues.each do |issue|
transition_type = issue.transitions.find { |t| t.name == "Close" }
issue.transitions.build.save!('transition' => { 'id' => transition_type.id, 'resolution' => close_resolution.id })
end
end |
Yes @Skipants answer is close but wrong. Below worked for me, wont_do = client.Resolution.all.find { |r| r.name == "Won't Do" }.attrs
issue.transitions.build.save!( 'transition' => { 'id' => transition_id }, 'fields' => { 'resolution' => wont_do }) |
Hi,
I am trying the following in order to update the "Resolution" field:
But I am getting following error:
{"errorMessages":[],"errors":{"resolution":"Field 'resolution' cannot be set. It is not on the appropriate screen, or unknown."}}
Any idea how to do that?
Thanks
The text was updated successfully, but these errors were encountered: