'Update an Issue
Updates an individual issues\'s attributes.  Only the attributes
submitted are modified.
:pparam string issue_id: the ID of the group to retrieve.
:param string status: the new status for the issue.  Valid values
are ``"resolved"``, ``resolvedInNextRelease``,
``"unresolved"``, and ``"ignored"``.
:param string assignedTo: the username of the user that should be
assigned to this issue.
:param boolean hasSeen: in case this API call is invoked with a user
context this allows changing of the flag
that indicates if the user has seen the
event.
:param boolean isBookmarked: in case this API call is invoked with a
user context this allows changing of
the bookmark flag.
:param boolean isSubscribed:
:auth: required'

@attach_scenarios([update_aggregate_scenario])
def put(self, request, group):

    discard = request.DATA.get('discard')
    response = client.put(path='/projects/{}/{}/issues/'.format(group.project.organization.slug, group.project.slug), params={'id': group.id}, data=request.DATA, request=request)
    if discard:
        return response
    group = Group.objects.get(id=group.id)
    return Response(serialize(group, request.user), status=response.status_code)
