Skip to content

Instantly share code, notes, and snippets.

@waldronj
Created August 26, 2013 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save waldronj/6345549 to your computer and use it in GitHub Desktop.
Save waldronj/6345549 to your computer and use it in GitHub Desktop.
jira integration python
class PylonstestingController(BaseController):
jac = {'server': 'someSite'}
jira = JIRA(options=jac,basic_auth=('SomeUser', 'SomePassword'))
def index(self, id):
#jac = {'server': 'someSite'}
#jira = JIRA(options=jac,basic_auth=('SomeUser', 'SomePassword'))
searchString = 'project=' + id + '&status=open'
c.issues = jira.search_issues(searchString, maxResults=1000)
#c.issues = issues
return render('index.html')
@demophoon
Copy link

Try this:

  jac = {'server': 'someSite'}
  jira = JIRA(options=jac,basic_auth=('SomeUser', 'SomePassword'))

  class PylonstestingController(BaseController):

    def index(self, id):
        global jira
        global jac
        #jac = {'server': 'someSite'}
        #jira = JIRA(options=jac,basic_auth=('SomeUser', 'SomePassword'))
        searchString = 'project=' + id + '&status=open' 
        c.issues = jira.search_issues(searchString, maxResults=1000)        
        #c.issues = issues
        return render('index.html')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment