'Create a new filter and return a filter Resource for it.
:param name: name of the new filter
:param description: useful human readable description of the new filter
:param jql: query string that defines the filter
:param favourite: whether to add this filter to the current user\'s favorites'

def create_filter(self, name=None, description=None, jql=None, favourite=None):

    data = {}
    if (name is not None):
        data[u'name'] = name
    if (description is not None):
        data[u'description'] = description
    if (jql is not None):
        data[u'jql'] = jql
    if (favourite is not None):
        data[u'favourite'] = favourite
    url = self._get_url(u'filter')
    r = self._session.post(url, data=json.dumps(data))
    raw_filter_json = json_loads(r)
    return Filter(self._options, self._session, raw=raw_filter_json)
