How to use the jira.Comment function in jira

To help you get started, we’ve selected a few jira examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github opennode / waldur-mastermind / src / nodeconductor_assembly_waldur / support / backend / atlassian.py View on Github external
def _add_comment(self, issue, body, is_internal):
        data = {
            'body': body,
            'properties': [{'key': 'sd.public.comment', 'value': {'internal': is_internal}}, ]
        }

        url = self.manager._get_url('issue/{0}/comment'.format(issue))
        r = self.manager._session.post(
            url, data=json.dumps(data))

        comment = Comment(self._options, self._session, raw=json_loads(r))
        return comment
github opennode / waldur-mastermind / src / waldur_mastermind / support / backend / atlassian.py View on Github external
def _add_comment(self, issue, body, is_internal):
        data = {
            'body': body,
            'properties': [
                {'key': 'sd.public.comment', 'value': {'internal': is_internal}},
            ],
        }

        url = self.manager._get_url('issue/{0}/comment'.format(issue))
        response = self.manager._session.post(url, data=json.dumps(data))

        comment = Comment(
            self.manager._options, self.manager._session, raw=json_loads(response)
        )
        return comment