original_docstring: 
      List user's issues
      ---------------------
      List issues opened by or assigned to a specific user across all projects.
  
      ::
  
          GET /api/0/user/<username>/issues
  
      Parameters
      ^^^^^^^^^^
  
      +---------------+---------+--------------+-----------------------------+
      | Key           | Type    | Optionality  | Description                 |
      +===============+=========+==============+=============================+
      | ``page``      | integer | Mandatory    | | The page requested.       |
      |               |         |              |   Defaults to 1.            |
      +---------------+---------+--------------+-----------------------------+
      | ``per_page``  | int     | Optional     | | The number of items       |
      |               |         |              |   to return per page.       |
      |               |         |              |   The maximum is 100.       |
      +---------------+---------+--------------+-----------------------------+
      | ``status``    | string  | Optional     | | Filters the status of     |
      |               |         |              |   issues. Fetches all the   |
      |               |         |              |   issues if status is       |
      |               |         |              |   ``all``. Default:         |
      |               |         |              |   ``Open``                  |
      +---------------+---------+--------------+-----------------------------+
      | ``tags``      | string  | Optional     | | A list of tags you wish to|
      |               |         |              |   filter. If you want to    |
      |               |         |              |   filter for issues not     |
      |               |         |              |   having a tag, add an      |
      |               |         |              |   exclamation mark in front |
      |               |         |              |   of it                     |
      +---------------+---------+--------------+-----------------------------+
      | ``milestones``| list of | Optional     | | Filter the issues by      |
      |               | strings |              |   milestone                 |
      +---------------+---------+--------------+-----------------------------+
      | ``no_stones`` | boolean | Optional     | | If true returns only the  |
      |               |         |              |   issues having no          |
      |               |         |              |   milestone, if false       |
      |               |         |              |   returns only the issues   |
      |               |         |              |   having a milestone        |
      +---------------+---------+--------------+-----------------------------+
      | ``since``     | string  | Optional     | | Filter the issues         |
      |               |         |              |   updated after this date.  |
      |               |         |              |   The date can either be    |
      |               |         |              |   provided as an unix date  |
      |               |         |              |   or in the format Y-M-D    |
      +---------------+---------+--------------+-----------------------------+
      | ``order``     | string  | Optional     | | Set the ordering of the   |
      |               |         |              |   issues. This can be       |
      |               |         |              |   ``asc`` or ``desc``.      |
      |               |         |              |   Default: ``desc``         |
      +---------------+---------+--------------+-----------------------------+
      | ``order_key`` | string  | Optional     | | Set the ordering key.     |
      |               |         |              |   This can be ``assignee``  |
      |               |         |              |   , ``last_updated`` or     |
      |               |         |              |   name of other column.     |
      |               |         |              |   Default: ``date_created`` |
      +---------------+---------+--------------+-----------------------------+
      | ``assignee``  | boolean | Optional     | | A boolean of whether to   |
      |               |         |              |   return the issues         |
      |               |         |              |   assigned to this user     |
      |               |         |              |   or not. Defaults to True  |
      +---------------+---------+--------------+-----------------------------+
      | ``author``    | boolean | Optional     | | A boolean of whether to   |
      |               |         |              |   return the issues         |
      |               |         |              |   created by this user or   |
      |               |         |              |   not. Defaults to True     |
      +---------------+---------+--------------+-----------------------------+
      | ``created``   | string  | Optional     | | Filter the issues returned|
      |               |         |              |   by their creation date    |
      |               |         |              |   The date can be of        |
      |               |         |              |   specified either using    |
      |               |         |              |   a timestamp format or     |
      |               |         |              |   using the iso format for  |
      |               |         |              |   dates: yyyy-mm-dd.        |
      |               |         |              |   You can specify a start   |
      |               |         |              |   and a end date to this    |
      |               |         |              |   filter using start..end.  |
      +---------------+---------+--------------+-----------------------------+
      | ``updated``   | string  | Optional     | | Filter the pull-requests  |
      |               |         |              |   returned by their update  |
      |               |         |              |   date. The date can be of  |
      |               |         |              |   specified either using    |
      |               |         |              |   a timestamp format or     |
      |               |         |              |   using the iso format for  |
      |               |         |              |   dates: yyyy-mm-dd.        |
      |               |         |              |   You can specify a start   |
      |               |         |              |   and a end date to this    |
      |               |         |              |   filter using start..end.  |
      +---------------+---------+--------------+-----------------------------+
      | ``closed``    | string  | Optional     | | Filter the pull-requests  |
      |               |         |              |   returned by their closing |
      |               |         |              |   date. The date can be of  |
      |               |         |              |   specified either using    |
      |               |         |              |   a timestamp format or     |
      |               |         |              |   using the iso format for  |
      |               |         |              |   dates: yyyy-mm-dd.        |
      |               |         |              |   You can specify a start   |
      |               |         |              |   and a end date to this    |
      |               |         |              |   filter using start..end.  |
      +---------------+---------+--------------+-----------------------------+
  
      Sample response
      ^^^^^^^^^^^^^^^
  
      ::
  
          {
            "args": {
              "assignee": true,
              "author": true,
              "milestones": [],
              "no_stones": null,
              "order": null,
              "order_key": null,
              "page": 1,
              "since": null,
              "status": null,
              "tags": [],
              "created": null,
              "updated": null,
              "closed": null,
            },
            "issues_assigned": [
              {
                "assignee": {
                  "fullname": "Anar Adilova",
                  "name": "anar"
                },
                "blocks": [],
                "close_status": null,
                "closed_at": null,
                "closed_by": null,
                "comments": [],
                "content": "Test Issue",
                "custom_fields": [],
                "date_created": "1510124763",
                "depends": [],
                "id": 2,
                "last_updated": "1510124763",
                "milestone": null,
                "priority": null,
                "private": false,
                "status": "Open",
                "tags": [],
                "title": "issue4",
                "user": {
                  "fullname": "Anar Adilova",
                  "name": "anar"
                }
              }
            ],
            "issues_created": [
              {
                "assignee": {
                  "fullname": "Anar Adilova",
                  "name": "anar"
                },
                "blocks": [],
                "close_status": null,
                "closed_at": null,
                "closed_by": null,
                "comments": [],
                "content": "Test Issue",
                "custom_fields": [],
                "date_created": "1510124763",
                "depends": [],
                "id": 2,
                "last_updated": "1510124763",
                "milestone": null,
                "priority": null,
                "private": false,
                "status": "Open",
                "tags": [],
                "title": "issue4",
                "user": {
                  "fullname": "Anar Adilova",
                  "name": "anar"
                }
              }
            ],
            "pagination_issues_assigned": {
              "first": "http://localhost:5000/api/0/user/anar/issues?per_page=1&page=1",
              "last": "http://localhost:5000/api/0/user/anar/issues?per_page=1&page=0",
              "next": null,
              "page": 1,
              "pages": 0,
              "per_page": 1,
              "prev": null
            },
            "pagination_issues_created": {
              "first": "http://localhost:5000/api/0/user/anar/issues?per_page=1&page=1",
              "last": "http://localhost:5000/api/0/user/anar/issues?per_page=1&page=200",
              "next": "http://localhost:5000/api/0/user/anar/issues?per_page=1&page=2",
              "page": 1,
              "pages": 200,
              "per_page": 1,
              "prev": null
            },
            "total_issues_assigned": 1,
            "total_issues_created": 1
          }
  
  
      
docstring: List user's issues
  List issues opened by or assigned to a specific user across all projects.
docstring_tokens: List user ' s issues List issues opened by or assigned to a specific user across all projects .
code: def api_view_user_issues(username):
      """
      List user's issues
      ---------------------
      List issues opened by or assigned to a specific user across all projects.
  
      ::
  
          GET /api/0/user/<username>/issues
  
      Parameters
      ^^^^^^^^^^
  
      +---------------+---------+--------------+-----------------------------+
      | Key           | Type    | Optionality  | Description                 |
      +===============+=========+==============+=============================+
      | ``page``      | integer | Mandatory    | | The page requested.       |
      |               |         |              |   Defaults to 1.            |
      +---------------+---------+--------------+-----------------------------+
      | ``per_page``  | int     | Optional     | | The number of items       |
      |               |         |              |   to return per page.       |
      |               |         |              |   The maximum is 100.       |
      +---------------+---------+--------------+-----------------------------+
      | ``status``    | string  | Optional     | | Filters the status of     |
      |               |         |              |   issues. Fetches all the   |
      |               |         |              |   issues if status is       |
      |               |         |              |   ``all``. Default:         |
      |               |         |              |   ``Open``                  |
      +---------------+---------+--------------+-----------------------------+
      | ``tags``      | string  | Optional     | | A list of tags you wish to|
      |               |         |              |   filter. If you want to    |
      |               |         |              |   filter for issues not     |
      |               |         |              |   having a tag, add an      |
      |               |         |              |   exclamation mark in front |
      |               |         |              |   of it                     |
      +---------------+---------+--------------+-----------------------------+
      | ``milestones``| list of | Optional     | | Filter the issues by      |
      |               | strings |              |   milestone                 |
      +---------------+---------+--------------+-----------------------------+
      | ``no_stones`` | boolean | Optional     | | If true returns only the  |
      |               |         |              |   issues having no          |
      |               |         |              |   milestone, if false       |
      |               |         |              |   returns only the issues   |
      |               |         |              |   having a milestone        |
      +---------------+---------+--------------+-----------------------------+
      | ``since``     | string  | Optional     | | Filter the issues         |
      |               |         |              |   updated after this date.  |
      |               |         |              |   The date can either be    |
      |               |         |              |   provided as an unix date  |
      |               |         |              |   or in the format Y-M-D    |
      +---------------+---------+--------------+-----------------------------+
      | ``order``     | string  | Optional     | | Set the ordering of the   |
      |               |         |              |   issues. This can be       |
      |               |         |              |   ``asc`` or ``desc``.      |
      |               |         |              |   Default: ``desc``         |
      +---------------+---------+--------------+-----------------------------+
      | ``order_key`` | string  | Optional     | | Set the ordering key.     |
      |               |         |              |   This can be ``assignee``  |
      |               |         |              |   , ``last_updated`` or     |
      |               |         |              |   name of other column.     |
      |               |         |              |   Default: ``date_created`` |
      +---------------+---------+--------------+-----------------------------+
      | ``assignee``  | boolean | Optional     | | A boolean of whether to   |
      |               |         |              |   return the issues         |
      |               |         |              |   assigned to this user     |
      |               |         |              |   or not. Defaults to True  |
      +---------------+---------+--------------+-----------------------------+
      | ``author``    | boolean | Optional     | | A boolean of whether to   |
      |               |         |              |   return the issues         |
      |               |         |              |   created by this user or   |
      |               |         |              |   not. Defaults to True     |
      +---------------+---------+--------------+-----------------------------+
      | ``created``   | string  | Optional     | | Filter the issues returned|
      |               |         |              |   by their creation date    |
      |               |         |              |   The date can be of        |
      |               |         |              |   specified either using    |
      |               |         |              |   a timestamp format or     |
      |               |         |              |   using the iso format for  |
      |               |         |              |   dates: yyyy-mm-dd.        |
      |               |         |              |   You can specify a start   |
      |               |         |              |   and a end date to this    |
      |               |         |              |   filter using start..end.  |
      +---------------+---------+--------------+-----------------------------+
      | ``updated``   | string  | Optional     | | Filter the pull-requests  |
      |               |         |              |   returned by their update  |
      |               |         |              |   date. The date can be of  |
      |               |         |              |   specified either using    |
      |               |         |              |   a timestamp format or     |
      |               |         |              |   using the iso format for  |
      |               |         |              |   dates: yyyy-mm-dd.        |
      |               |         |              |   You can specify a start   |
      |               |         |              |   and a end date to this    |
      |               |         |              |   filter using start..end.  |
      +---------------+---------+--------------+-----------------------------+
      | ``closed``    | string  | Optional     | | Filter the pull-requests  |
      |               |         |              |   returned by their closing |
      |               |         |              |   date. The date can be of  |
      |               |         |              |   specified either using    |
      |               |         |              |   a timestamp format or     |
      |               |         |              |   using the iso format for  |
      |               |         |              |   dates: yyyy-mm-dd.        |
      |               |         |              |   You can specify a start   |
      |               |         |              |   and a end date to this    |
      |               |         |              |   filter using start..end.  |
      +---------------+---------+--------------+-----------------------------+
  
      Sample response
      ^^^^^^^^^^^^^^^
  
      ::
  
          {
            "args": {
              "assignee": true,
              "author": true,
              "milestones": [],
              "no_stones": null,
              "order": null,
              "order_key": null,
              "page": 1,
              "since": null,
              "status": null,
              "tags": [],
              "created": null,
              "updated": null,
              "closed": null,
            },
            "issues_assigned": [
              {
                "assignee": {
                  "fullname": "Anar Adilova",
                  "name": "anar"
                },
                "blocks": [],
                "close_status": null,
                "closed_at": null,
                "closed_by": null,
                "comments": [],
                "content": "Test Issue",
                "custom_fields": [],
                "date_created": "1510124763",
                "depends": [],
                "id": 2,
                "last_updated": "1510124763",
                "milestone": null,
                "priority": null,
                "private": false,
                "status": "Open",
                "tags": [],
                "title": "issue4",
                "user": {
                  "fullname": "Anar Adilova",
                  "name": "anar"
                }
              }
            ],
            "issues_created": [
              {
                "assignee": {
                  "fullname": "Anar Adilova",
                  "name": "anar"
                },
                "blocks": [],
                "close_status": null,
                "closed_at": null,
                "closed_by": null,
                "comments": [],
                "content": "Test Issue",
                "custom_fields": [],
                "date_created": "1510124763",
                "depends": [],
                "id": 2,
                "last_updated": "1510124763",
                "milestone": null,
                "priority": null,
                "private": false,
                "status": "Open",
                "tags": [],
                "title": "issue4",
                "user": {
                  "fullname": "Anar Adilova",
                  "name": "anar"
                }
              }
            ],
            "pagination_issues_assigned": {
              "first": "http://localhost:5000/api/0/user/anar/issues?per_page=1&page=1",
              "last": "http://localhost:5000/api/0/user/anar/issues?per_page=1&page=0",
              "next": null,
              "page": 1,
              "pages": 0,
              "per_page": 1,
              "prev": null
            },
            "pagination_issues_created": {
              "first": "http://localhost:5000/api/0/user/anar/issues?per_page=1&page=1",
              "last": "http://localhost:5000/api/0/user/anar/issues?per_page=1&page=200",
              "next": "http://localhost:5000/api/0/user/anar/issues?per_page=1&page=2",
              "page": 1,
              "pages": 200,
              "per_page": 1,
              "prev": null
            },
            "total_issues_assigned": 1,
            "total_issues_created": 1
          }
  
  
      """  # noqa
      milestone = flask.request.args.getlist("milestones", None)
      no_stones = flask.request.args.get("no_stones", None)
      if no_stones is not None:
          no_stones = is_true(no_stones)
      since = flask.request.args.get("since", None)
      order = flask.request.args.get("order", None)
      order_key = flask.request.args.get("order_key", None)
      status = flask.request.args.get("status", None)
      tags = flask.request.args.getlist("tags")
      tags = [tag.strip() for tag in tags if tag.strip()]
      created = flask.request.args.get("created")
      updated = flask.request.args.get("updated")
      closed = flask.request.args.get("closed")
  
      try:
          created_since, created_until = validate_date_range(created)
          updated_since, updated_until = validate_date_range(updated)
          closed_since, closed_until = validate_date_range(closed)
      except pagure.exceptions.InvalidTimestampException:
          raise pagure.exceptions.APIError(400, error_code=APIERROR.ETIMESTAMP)
      except pagure.exceptions.InvalidDateformatException:
          raise pagure.exceptions.APIError(400, error_code=APIERROR.EDATETIME)
  
      page = get_page()
      per_page = get_per_page()
  
      assignee = flask.request.args.get("assignee", "").lower() not in [
          "false",
          "0",
          "f",
      ]
      author = flask.request.args.get("author", "").lower() not in [
          "false",
          "0",
          "f",
      ]
  
      offset = (page - 1) * per_page
      limit = per_page
  
      params = {
          "session": flask.g.session,
          "tags": tags,
          "milestones": milestone,
          "order": order,
          "order_key": order_key,
          "no_milestones": no_stones,
          "offset": offset,
          "limit": limit,
          "created_since": created_since,
          "created_until": created_until,
          "updated_since": updated_since,
          "updated_until": updated_until,
          "closed_since": closed_since,
          "closed_until": closed_until,
      }
  
      if status is not None:
          if status.lower() == "all":
              params.update({"status": None})
          elif status.lower() == "closed":
              params.update({"closed": True})
          else:
              params.update({"status": status})
      else:
          params.update({"status": "Open"})
  
      updated_after = None
      if since:
          updated_after = validate_date(since)
  
      params.update({"updated_after": updated_after})
  
      issues_created = []
      issues_created_pages = 1
      issues_created_cnt = 0
      pagination_issues_created = None
      if author:
          # Issues authored by this user
          params_created = params.copy()
          params_created.update({"author": username})
          issues_created = pagure.lib.query.search_issues(**params_created)
          params_created.update({"offset": None, "limit": None, "count": True})
          issues_created_cnt = pagure.lib.query.search_issues(**params_created)
          pagination_issues_created = pagure.lib.query.get_pagination_metadata(
              flask.request, page, per_page, issues_created_cnt
          )
  
      issues_assigned = []
      issues_assigned_pages = 1
      issues_assigned_cnt = 0
      pagination_issues_assigned = None
      if assignee:
          # Issues assigned to this user
          params_assigned = params.copy()
          params_assigned.update({"assignee": username})
          issues_assigned = pagure.lib.query.search_issues(**params_assigned)
          params_assigned.update({"offset": None, "limit": None, "count": True})
          issues_assigned_cnt = pagure.lib.query.search_issues(**params_assigned)
          pagination_issues_assigned = pagure.lib.query.get_pagination_metadata(
              flask.request, page, per_page, issues_assigned_cnt
          )
  
      jsonout = flask.jsonify(
          {
              "pagination_issues_created": pagination_issues_created,
              "pagination_issues_assigned": pagination_issues_assigned,
              "total_issues_created_pages": issues_created_pages,
              "total_issues_assigned_pages": issues_assigned_pages,
              "total_issues_created": issues_created_cnt,
              "total_issues_assigned": issues_assigned_cnt,
              "issues_created": [
                  issue.to_json(public=True, with_project=True)
                  for issue in issues_created
              ],
              "issues_assigned": [
                  issue.to_json(public=True, with_project=True)
                  for issue in issues_assigned
              ],
              "args": {
                  "milestones": milestone,
                  "no_stones": no_stones,
                  "order": order,
                  "order_key": order_key,
                  "since": since,
                  "status": status,
                  "tags": tags,
                  "page": page,
                  "assignee": assignee,
                  "author": author,
                  "created": created,
                  "updated": updated,
                  "closed": closed,
              },
          }
      )
      return jsonout
code_tokens: def api_view_user_issues ( username ) : milestone = flask . request . args . getlist ( "milestones" , None ) no_stones = flask . request . args . get ( "no_stones" , None ) if no_stones is not None : no_stones = is_true ( no_stones ) since = flask . request . args . get ( "since" , None ) order = flask . request . args . get ( "order" , None ) order_key = flask . request . args . get ( "order_key" , None ) status = flask . request . args . get ( "status" , None ) tags = flask . request . args . getlist ( "tags" ) tags = [ tag . strip ( ) for tag in tags if tag . strip ( ) ] created = flask . request . args . get ( "created" ) updated = flask . request . args . get ( "updated" ) closed = flask . request . args . get ( "closed" ) try : created_since , created_until = validate_date_range ( created ) updated_since , updated_until = validate_date_range ( updated ) closed_since , closed_until = validate_date_range ( closed ) except pagure . exceptions . InvalidTimestampException : raise pagure . exceptions . APIError ( 400 , error_code = APIERROR . ETIMESTAMP ) except pagure . exceptions . InvalidDateformatException : raise pagure . exceptions . APIError ( 400 , error_code = APIERROR . EDATETIME ) page = get_page ( ) per_page = get_per_page ( ) assignee = flask . request . args . get ( "assignee" , "" ) . lower ( ) not in [ "false" , "0" , "f" , ] author = flask . request . args . get ( "author" , "" ) . lower ( ) not in [ "false" , "0" , "f" , ] offset = ( page - 1 ) * per_page limit = per_page params = { "session" : flask . g . session , "tags" : tags , "milestones" : milestone , "order" : order , "order_key" : order_key , "no_milestones" : no_stones , "offset" : offset , "limit" : limit , "created_since" : created_since , "created_until" : created_until , "updated_since" : updated_since , "updated_until" : updated_until , "closed_since" : closed_since , "closed_until" : closed_until , } if status is not None : if status . lower ( ) == "all" : params . update ( { "status" : None } ) elif status . lower ( ) == "closed" : params . update ( { "closed" : True } ) else : params . update ( { "status" : status } ) else : params . update ( { "status" : "Open" } ) updated_after = None if since : updated_after = validate_date ( since ) params . update ( { "updated_after" : updated_after } ) issues_created = [ ] issues_created_pages = 1 issues_created_cnt = 0 pagination_issues_created = None if author : params_created = params . copy ( ) params_created . update ( { "author" : username } ) issues_created = pagure . lib . query . search_issues ( ** params_created ) params_created . update ( { "offset" : None , "limit" : None , "count" : True } ) issues_created_cnt = pagure . lib . query . search_issues ( ** params_created ) pagination_issues_created = pagure . lib . query . get_pagination_metadata ( flask . request , page , per_page , issues_created_cnt ) issues_assigned = [ ] issues_assigned_pages = 1 issues_assigned_cnt = 0 pagination_issues_assigned = None if assignee : params_assigned = params . copy ( ) params_assigned . update ( { "assignee" : username } ) issues_assigned = pagure . lib . query . search_issues ( ** params_assigned ) params_assigned . update ( { "offset" : None , "limit" : None , "count" : True } ) issues_assigned_cnt = pagure . lib . query . search_issues ( ** params_assigned ) pagination_issues_assigned = pagure . lib . query . get_pagination_metadata ( flask . request , page , per_page , issues_assigned_cnt ) jsonout = flask . jsonify ( { "pagination_issues_created" : pagination_issues_created , "pagination_issues_assigned" : pagination_issues_assigned , "total_issues_created_pages" : issues_created_pages , "total_issues_assigned_pages" : issues_assigned_pages , "total_issues_created" : issues_created_cnt , "total_issues_assigned" : issues_assigned_cnt , "issues_created" : [ issue . to_json ( public = True , with_project = True ) for issue in issues_created ] , "issues_assigned" : [ issue . to_json ( public = True , with_project = True ) for issue in issues_assigned ] , "args" : { "milestones" : milestone , "no_stones" : no_stones , "order" : order , "order_key" : order_key , "since" : since , "status" : status , "tags" : tags , "page" : page , "assignee" : assignee , "author" : author , "created" : created , "updated" : updated , "closed" : closed , } , } ) return jsonout
short_docstring: List user's issues
  List issues opened by or assigned to a specific user across all projects.
short_docstring_tokens: List user ' s issues List issues opened by or assigned to a specific user across all projects .
comment: """
      List user's issues
      ---------------------
      List issues opened by or assigned to a specific user across all projects.
  
      ::
  
          GET /api/0/user/<username>/issues
  
      Parameters
      ^^^^^^^^^^
  
      +---------------+---------+--------------+-----------------------------+
      | Key           | Type    | Optionality  | Description                 |
      +===============+=========+==============+=============================+
      | ``page``      | integer | Mandatory    | | The page requested.       |
      |               |         |              |   Defaults to 1.            |
      +---------------+---------+--------------+-----------------------------+
      | ``per_page``  | int     | Optional     | | The number of items       |
      |               |         |              |   to return per page.       |
      |               |         |              |   The maximum is 100.       |
      +---------------+---------+--------------+-----------------------------+
      | ``status``    | string  | Optional     | | Filters the status of     |
      |               |         |              |   issues. Fetches all the   |
      |               |         |              |   issues if status is       |
      |               |         |              |   ``all``. Default:         |
      |               |         |              |   ``Open``                  |
      +---------------+---------+--------------+-----------------------------+
      | ``tags``      | string  | Optional     | | A list of tags you wish to|
      |               |         |              |   filter. If you want to    |
      |               |         |              |   filter for issues not     |
      |               |         |              |   having a tag, add an      |
      |               |         |              |   exclamation mark in front |
      |               |         |              |   of it                     |
      +---------------+---------+--------------+-----------------------------+
      | ``milestones``| list of | Optional     | | Filter the issues by      |
      |               | strings |              |   milestone                 |
      +---------------+---------+--------------+-----------------------------+
      | ``no_stones`` | boolean | Optional     | | If true returns only the  |
      |               |         |              |   issues having no          |
      |               |         |              |   milestone, if false       |
      |               |         |              |   returns only the issues   |
      |               |         |              |   having a milestone        |
      +---------------+---------+--------------+-----------------------------+
      | ``since``     | string  | Optional     | | Filter the issues         |
      |               |         |              |   updated after this date.  |
      |               |         |              |   The date can either be    |
      |               |         |              |   provided as an unix date  |
      |               |         |              |   or in the format Y-M-D    |
      +---------------+---------+--------------+-----------------------------+
      | ``order``     | string  | Optional     | | Set the ordering of the   |
      |               |         |              |   issues. This can be       |
      |               |         |              |   ``asc`` or ``desc``.      |
      |               |         |              |   Default: ``desc``         |
      +---------------+---------+--------------+-----------------------------+
      | ``order_key`` | string  | Optional     | | Set the ordering key.     |
      |               |         |              |   This can be ``assignee``  |
      |               |         |              |   , ``last_updated`` or     |
      |               |         |              |   name of other column.     |
      |               |         |              |   Default: ``date_created`` |
      +---------------+---------+--------------+-----------------------------+
      | ``assignee``  | boolean | Optional     | | A boolean of whether to   |
      |               |         |              |   return the issues         |
      |               |         |              |   assigned to this user     |
      |               |         |              |   or not. Defaults to True  |
      +---------------+---------+--------------+-----------------------------+
      | ``author``    | boolean | Optional     | | A boolean of whether to   |
      |               |         |              |   return the issues         |
      |               |         |              |   created by this user or   |
      |               |         |              |   not. Defaults to True     |
      +---------------+---------+--------------+-----------------------------+
      | ``created``   | string  | Optional     | | Filter the issues returned|
      |               |         |              |   by their creation date    |
      |               |         |              |   The date can be of        |
      |               |         |              |   specified either using    |
      |               |         |              |   a timestamp format or     |
      |               |         |              |   using the iso format for  |
      |               |         |              |   dates: yyyy-mm-dd.        |
      |               |         |              |   You can specify a start   |
      |               |         |              |   and a end date to this    |
      |               |         |              |   filter using start..end.  |
      +---------------+---------+--------------+-----------------------------+
      | ``updated``   | string  | Optional     | | Filter the pull-requests  |
      |               |         |              |   returned by their update  |
      |               |         |              |   date. The date can be of  |
      |               |         |              |   specified either using    |
      |               |         |              |   a timestamp format or     |
      |               |         |              |   using the iso format for  |
      |               |         |              |   dates: yyyy-mm-dd.        |
      |               |         |              |   You can specify a start   |
      |               |         |              |   and a end date to this    |
      |               |         |              |   filter using start..end.  |
      +---------------+---------+--------------+-----------------------------+
      | ``closed``    | string  | Optional     | | Filter the pull-requests  |
      |               |         |              |   returned by their closing |
      |               |         |              |   date. The date can be of  |
      |               |         |              |   specified either using    |
      |               |         |              |   a timestamp format or     |
      |               |         |              |   using the iso format for  |
      |               |         |              |   dates: yyyy-mm-dd.        |
      |               |         |              |   You can specify a start   |
      |               |         |              |   and a end date to this    |
      |               |         |              |   filter using start..end.  |
      +---------------+---------+--------------+-----------------------------+
  
      Sample response
      ^^^^^^^^^^^^^^^
  
      ::
  
          {
            "args": {
              "assignee": true,
              "author": true,
              "milestones": [],
              "no_stones": null,
              "order": null,
              "order_key": null,
              "page": 1,
              "since": null,
              "status": null,
              "tags": [],
              "created": null,
              "updated": null,
              "closed": null,
            },
            "issues_assigned": [
              {
                "assignee": {
                  "fullname": "Anar Adilova",
                  "name": "anar"
                },
                "blocks": [],
                "close_status": null,
                "closed_at": null,
                "closed_by": null,
                "comments": [],
                "content": "Test Issue",
                "custom_fields": [],
                "date_created": "1510124763",
                "depends": [],
                "id": 2,
                "last_updated": "1510124763",
                "milestone": null,
                "priority": null,
                "private": false,
                "status": "Open",
                "tags": [],
                "title": "issue4",
                "user": {
                  "fullname": "Anar Adilova",
                  "name": "anar"
                }
              }
            ],
            "issues_created": [
              {
                "assignee": {
                  "fullname": "Anar Adilova",
                  "name": "anar"
                },
                "blocks": [],
                "close_status": null,
                "closed_at": null,
                "closed_by": null,
                "comments": [],
                "content": "Test Issue",
                "custom_fields": [],
                "date_created": "1510124763",
                "depends": [],
                "id": 2,
                "last_updated": "1510124763",
                "milestone": null,
                "priority": null,
                "private": false,
                "status": "Open",
                "tags": [],
                "title": "issue4",
                "user": {
                  "fullname": "Anar Adilova",
                  "name": "anar"
                }
              }
            ],
            "pagination_issues_assigned": {
              "first": "http://localhost:5000/api/0/user/anar/issues?per_page=1&page=1",
              "last": "http://localhost:5000/api/0/user/anar/issues?per_page=1&page=0",
              "next": null,
              "page": 1,
              "pages": 0,
              "per_page": 1,
              "prev": null
            },
            "pagination_issues_created": {
              "first": "http://localhost:5000/api/0/user/anar/issues?per_page=1&page=1",
              "last": "http://localhost:5000/api/0/user/anar/issues?per_page=1&page=200",
              "next": "http://localhost:5000/api/0/user/anar/issues?per_page=1&page=2",
              "page": 1,
              "pages": 200,
              "per_page": 1,
              "prev": null
            },
            "total_issues_assigned": 1,
            "total_issues_created": 1
          }
  
  
      """$SEP$# noqa$SEP$# Issues authored by this user$SEP$# Issues assigned to this user