際際滷

際際滷Share a Scribd company logo
 仆亳从亟舒 仆亠 仆舒亟仂
亠舒!
JIRA: dashboards
亳 SOAP API
亳从亳舒 舒仍ム亳仆,
Undev.ru
 亠仄 仄 亠亞仂亟仆?
 舒从亳亠 仂亠 弍于舒ム
 舒从亳亠 亠亟于舒 亠 于 JIRA 亟仍
仂弍仍亠亞亠仆亳 仗仂亟亞仂仂于从亳 仂亠仂于
(dashboards)
 舒从 仄仂亢仆仂 亞亠仆亠亳仂于舒 仂亠
仗亳 仗仂仄仂亳 于仆亠仆亳 从亳仗仂于
(SOAP API 于 Python)
丐亳从亠 于 scope 亠仍亳亰舒
从亠 弍舒亞亳
弌于仂亟仆亠 舒弍仍亳 亳 亟亳舒亞舒仄仄
弌仂弍亳舒亠仄 于亠 于仄亠亠
SOAP API: 从仂亞亟舒 仆舒仄 仆亢仆仂
弍仂仍亠亠
 SOAP  仗仂仂从仂仍 仂弍仄亠仆舒 亟舒仆仆仄亳
 亠于亠仂仄
 仍亳亠仆 亳 亠于亠 仂弍仄亠仆亳于舒ム
亟亞  亟亞仂仄 仄舒仍亠仆从亳仄亳 XML-
亟仂从仄亠仆舒仄亳
亠仂弍仂亟亳仄亠 弍亳弍仍亳仂亠从亳
 PyXML 0.8.4
 SOAPpy 0.11.6
 fpconst 0.7.2
 亠 亠 弍亳弍仍亳仂亠从舒
 Jira-cli-1.5.0
仗仂 仆亠亠 于 仂亶 仗亠亰亠仆舒亳亳
仆亳亠亞仂 仆亠 从舒亰舒仆仂 :)
丕舒仆仂于仍亠仆亳亠 仂亠亟亳仆亠仆亳
import SOAPpy;
soap =
SOAPpy.WSDL.Proxy('http://jira-
server/rpc/soap/jirasoapservice-v2?
wsdl')
jirauser='user1'
passwd='pass1'
auth = soap.login(jirauser, passwd)
弌仍仂于舒亳
statuses = soap.getStatuses(auth)
priorities = soap.getPriorities(auth)
resolutions = soap.getResolutions(auth)
st = dict()
for status in statuses:
st[status['id']] = status['name']
舒仗仂
 JQL 亰舒仗仂:
issuesFromTextSearch =
soap.getIssuesFromJqlSearch(auth,
'project = DEV AND (issuetype = "DEV:
QA testing " AND "Affects Patch/es" =
"*point") AND status in ("DEV:
Resolved", "DEV: Developed")', 10000);
 弌仂舒仆亠仆仆亠 亳亰 亳仍舒:
issues = soap.getIssuesFromFilter(auth,
"17395")
亳弍 亳从亠仂于
for issue in issues:
priority = pr[issue['priority']]
status = st[issue['status']]
if not issue['resolution'] == None:
resolution = res[issue['resolution']]
else:
resolution = ""
仂仍亰仂于舒亠仍从亳亠 舒亳弍
customFields = issue['customFieldValues']
for customField in customFields:
if customField['customfieldId'] ==
'customfield_10685':
for i in customField['values']:
fixPatches = fixPatches + i
弌仗亳舒仆仆仂亠 于亠仄
worklogs = soap.getWorklogs(auth,issue['key'])
for worklog in worklogs:
date = datetime.date(
worklog['startDate'][0],
worklog['startDate'][1],
worklog['startDate'][2])
if date == reportDate:
author = soap.getUser(auth,
worklog['author'])['fullname']
timeSpent = worklog['timeSpent']
comment = worklog['comment']
JIRA: dashboards
亳 SOAP API
亳从亳舒 舒仍ム亳仆,
Undev.ru
http://NikitaNalyutin.moikrug.ru

More Related Content

Chiefconfetqa nalutin