import jira
def debugOutput(name, param):
print name
print "===================="
print param
print "===================="
def getWikiLink(text, link):
return "[" + text + "|" + link + "]"
def printIssue():
print jira.getParticipants(jira.getIssue("FRWA-13618"))
def getJiraTable(issues):
wiki = "Type,Created,Key,Summary,Assignee,Reporter,Priority,Status,Resolution,Updated\n"
for issue in issues:
row = '"' + jira.getType(issue.type) + '",' \
+ '"' + unicode(issue.created) + '",' \
+ '"' + issue.key + '",' \
+ '"' + issue.summary + '",' \
+ '"' + jira.getUser(issue.assignee) + '",' \
+ '"' + jira.getUser(issue.reporter) + '",' \
+ '"' + jira.getPriority(issue.priority) + '",' \
+ '"' + jira.getStatus(issue.status) + '",' \
+ '"' + jira.getResolution(issue.resolution) + '",' \
+ '"' + unicode(issue.updated) + '"' + "\n"
wiki += row
return wiki
def generateConfluence(jql_query):
wiki = getJiraTable(jira.getSpesialTasks(jql_query))
print wiki
generateConfluence('assignee = mishin')