@exc.on_http_error(exc.GitlabCreateError)<EOL><INDENT>def create(self, data, **kwargs):<DEDENT>
self._check_missing_create_attrs(data)<EOL>server_data = self.gitlab.http_post(self.path, post_data=data,<EOL>**kwargs)<EOL>source_issue = ProjectIssue(self._parent.manager,<EOL>server_data['<STR_LIT>'])<EOL>target_issue = ProjectIssue(self._parent.manager,<EOL>server_data['<STR_LIT>'])<EOL>return source_issue, target_issue<EOL>
Create a new object.

        Args:
            data (dict): parameters to send to the server to create the
                         resource
            **kwargs: Extra options to send to the server (e.g. sudo)

        Returns:
            RESTObject, RESTObject: The source and target issues

        Raises:
            GitlabAuthenticationError: If authentication is not correct
            GitlabCreateError: If the server cannot perform the request