Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ref issue #693
Button to close the task added to the edit page, but not the list, as confirmed by Vikas No way to close a challenge of type TASK #693 (comment)
Close Task
button is only showed after the challenge is activated as clarified by Vikas No way to close a challenge of type TASK #693 (comment)As not all the fields which are needed to close a task are required in the form, I've added an error message which asks user to fill all the fields for closing task:
If all required info is there and user clicks
Close Task
button, there is a confirmation dialog:If user clicks
Confirm
form is being processed and a standard successful message is showing:Though at the moment when I'm trying to close the task with the assigned member who is added as a winner there is an error. I guess setting
task.memberId
doesn't add the user to the challenge, because when I send the same request but withoutwinners
array it works, and the challenge is marked as completed: