def run(self, issue_key, include_comments=False, include_attachments=False, include_customfields=False): issue = self._client.issue(issue_key) result = to_issue_dict(issue=issue, include_comments=include_comments, include_attachments=include_attachments, include_customfields=include_customfields) return result
def run(self, summary, type, description=None, project=None, extra_fields=None): project = project or self.config['project'] data = { 'project': { 'key': project }, 'summary': summary, 'issuetype': { 'name': type } } if description: data['description'] = description if extra_fields: data.update(extra_fields) issue = self._client.create_issue(fields=data) result = to_issue_dict(issue) return result
def run(self, issue_key, include_comments=False, include_attachments=False): issue = self._client.issue(issue_key) result = to_issue_dict(issue=issue, include_comments=include_comments, include_attachments=include_attachments) return result
def run(self, type, issue_number=None): data = { 'issuetype': {'name': type} } issue = self._client.issue(issue_number) self._client.transition_issue(issue.key, '21') result = to_issue_dict(issue) return result
def run(self, summary, type, description=None, project=None): project = project or self.config['project'] data = { 'project': {'key': project}, 'summary': summary, 'issuetype': {'name': type} } if description: data['description'] = description issue = self._client.create_issue(fields=data) result = to_issue_dict(issue) return result
def run(self, query, start_at=0, max_results=50, include_comments=False, include_attachments=False, include_customfields=False): issues = self._client.search_issues(query, startAt=start_at, maxResults=max_results) results = [] for issue in issues: results.append(to_issue_dict(issue=issue, include_comments=include_comments, include_attachments=include_attachments, include_customfields=include_customfields)) return results
def run(self, issue_key, include_comments=False, include_attachments=False, include_customfields=False, include_components=False, include_subtasks=False): issue = self._client.issue(issue_key) result = to_issue_dict(issue=issue, include_comments=include_comments, include_attachments=include_attachments, include_customfields=include_customfields, include_components=include_components, include_subtasks=include_subtasks) return result
def run(self, query, start_at=0, max_results=50, include_comments=False, include_attachments=False): issues = self._client.search_issues(query, startAt=start_at, maxResults=max_results) results = [] for issue in issues: results.append( to_issue_dict(issue=issue, include_comments=include_comments, include_attachments=include_attachments)) return results
def run(self, summary, type, description=None, project=None, assignee=None, extra_fields=None): project = project or self.config['project'] data = { 'project': {'key': project}, 'summary': summary, 'issuetype': {'name': type} } if description: data['description'] = description if extra_fields: data.update(extra_fields) issue = self._client.create_issue(fields=data) if assignee: self._client.assign_issue(issue.key, assignee) result = to_issue_dict(issue, assignee) return result
def run(self, issue_key): issue = self._client.issue(issue_key) result = to_issue_dict(issue=issue) return result