public EditMilestoneTask edit(Milestone milestone) {
        if (milestone != null) {
            IssueRequest editedIssue = IssueRequest.builder().milestone(milestone.number()).build();

            store.editIssue(repositoryId, issueNumber, editedIssue)
                    .subscribeOn(Schedulers.io())
                    .observeOn(AndroidSchedulers.mainThread())
                    .compose(RxProgress.bindToLifecycle(activity, R.string.updating_milestone))
                    .as(AutoDisposeUtils.bindToLifecycle(activity))
                    .subscribe(observer);
        }

        return this;
    }
Edit issue to have given milestone

@param milestone
@return this task
app/src/main/java/com/github/pockethub/android/ui/issue/EditMilestoneTask.java