Skip to content
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

Can't change a resolution to empty #5

Closed
junichi11 opened this issue Oct 17, 2014 · 5 comments
Closed

Can't change a resolution to empty #5

junichi11 opened this issue Oct 17, 2014 · 5 comments

Comments

@junichi11
Copy link

I would like to change a resolution type to empty. But I can't set the empty resolution type to UpdateIssueParams.resolution. Now I can find five resolution types in Issue.ResolutionType:

UpdateIssueParams issueParams = new UpdateIssueParams(issue.getID())
        .resolution(resolutionType);
  • Fixed
  • WontFix
  • Invalid
  • Duplication
  • CannotReproduce

We can't change it to empty because resolution method parameter is enum type but empty resolution type doesn't exist.

Thanks.

@kimzo
Copy link
Member

kimzo commented Oct 18, 2014

Oh sorry.
When issue's resolution is empty, API returns null for resolution.
So I will fix the code to allow setting null value for resolution.

UpdateIssueParams issueParams = new UpdateIssueParams(issue.getID())
        .resolution(null);

Thanks.

@junichi11
Copy link
Author

👍

@kimzo
Copy link
Member

kimzo commented Oct 18, 2014

I fixed the setting resolution parameter at version 2.0.4.
So I close this issue.

@kimzo kimzo closed this as completed Oct 18, 2014
@junichi11
Copy link
Author

Thanks a lot!

BTW, Could you add an issue number to a commit message (like this: Fix something #5) if possible? (since next issue) Because commits will be linked to proper issue.
If you want to avoid it, it's no problem :)

@kimzo
Copy link
Member

kimzo commented Oct 18, 2014

Ok, Sure! I will add an issue number from next time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants