Lines Matching refs:issue
577 issue = self._format_issue_options(bug_template, title=bug.title(),
583 filed_bug = self._phapi_client.create_issue(issue)
590 issue.get('owner'))
701 all_issues = [issue for issue in issues
702 if clean_marker in re.sub('[0-9]+', '', issue.summary)]
705 issue_ids = [issue.id for issue in all_issues]
713 for issue in issues:
715 for comment in issue.comments):
716 return issue
727 issue = self._find_issue_by_marker(marker)
728 if not issue or issue.state == constants.ISSUE_OPEN:
729 return issue
735 visited_issues = set([issue.id])
736 while issue.merged_into is not None:
737 issue = self._phapi_client.get_tracker_issue_by_id(
738 issue.merged_into)
739 if not issue or issue.id in visited_issues:
741 elif issue.state == constants.ISSUE_OPEN:
743 'issue(s) have been merged into.', issue.id)
744 return issue
746 visited_issues.add(issue.id)
753 def _get_count_labels_and_max(self, issue): argument
778 for label in filter(is_count_label, issue.labels):
788 def _create_autofiled_count_update(self, issue): argument
808 count_labels, count_max = self._get_count_labels_and_max(issue)
881 issue = None
883 issue = self._dedupe_issue(bug.search_marker())
894 if issue and ignore_duplicate:
897 _, bug_count = self._get_count_labels_and_max(issue)
898 return ReportResult(issue.id, bug_count)
900 if issue:
903 self._create_autofiled_count_update(issue))
906 self.modify_bug_report(issue.id, comment, label_update)
907 return ReportResult(issue.id, bug_count)