Skip to content

Commit

Permalink
port assigned_issues_url from github to jira
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnps committed Feb 22, 2013
1 parent 95be929 commit 68de6df
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/survivor/models/user.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from urllib2 import quote

from mongoengine import *
from mongoengine.queryset import QuerySet

Expand Down Expand Up @@ -48,5 +50,6 @@ def leaderboard_user(self):
return not whitelist or self.login in whitelist

def assigned_issues_url(self):
return 'https://github.com/%s/issues/assigned/%s' % (config['github.repo'],
self.login)
return quote('%s/issues/?jql=project = %s AND status = Open AND assignee = "%s"' % (config['jira.server'],
config['jira.project'],
self.login))

0 comments on commit 68de6df

Please sign in to comment.