Skip to content

Commit

Permalink
Adding JIRA's 'description' field to stored task data.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Coddington committed Apr 2, 2014
1 parent 3008ce1 commit 715a7df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions bugwarrior/services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ def aggregate_issues(conf):

log.name('bugwarrior').info("Spawning %i workers." % len(targets))
processes = []

for target in targets:
proc = multiprocessing.Process(
target=_aggregate_issues,
Expand Down
6 changes: 6 additions & 0 deletions bugwarrior/services/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class JiraIssue(Issue):
SUMMARY = 'jirasummary'
URL = 'jiraurl'
FOREIGN_ID = 'jiraid'
DESCRIPTION = 'jiradescription'

UDAS = {
SUMMARY: {
Expand All @@ -20,6 +21,10 @@ class JiraIssue(Issue):
'type': 'string',
'label': 'Jira URL',
},
DESCRIPTION: {
'type': 'string',
'label': 'Jira Description',
},
FOREIGN_ID: {
'type': 'string',
'label': 'Jira Issue ID'
Expand All @@ -43,6 +48,7 @@ def to_taskwarrior(self):

self.URL: self.get_url(),
self.FOREIGN_ID: self.record['key'],
self.DESCRIPTION: self.record.get('fields', {}).get('description'),
self.SUMMARY: self.get_summary(),
}

Expand Down

0 comments on commit 715a7df

Please sign in to comment.