-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathissue.py
20 lines (19 loc) · 1.02 KB
/
issue.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class Issue:
"""A Issue object will represent a Jira Issue containing limited fields
"""
def __init__(self, issue_id, key, summary, parent_key, parent_summary, original_estimate, time_spent, issue_end_date):
self.issue_id = issue_id
self.key = key
self.summary = summary
self.parent_key = parent_key
self.parent_summary = parent_summary
self.original_estimate = original_estimate
self.time_spent = time_spent
self.issue_start_date = None
self.issue_end_date = issue_end_date
def __eq__(self, other):
try:
return (self.issue_id, self.key, self.summary, self. parent_key, self.parent_summary, self.original_estimate, self.time_spent, self.issue_start_date, self.issue_end_date) == \
(other.issue_id, other.key, other.summary, other.parent_key, other.parent_summary, other.original_estimate, other.time_spent, other.issue_start_date, other.issue_end_date)
except AttributeError:
return NotImplemented