forked from echoeslove/jira-analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathObtainJiraIssue.py
19 lines (18 loc) · 924 Bytes
/
ObtainJiraIssue.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from jira import JIRA
jira_client = JIRA(server='http://172.20.200.191:8080',
auth=('chenmingjie', 'MITcoming511'))
jira_issues = jira_client.search_issues(
'issuetype in (生产Bug, sub-Bug) ' +
'AND status = Closed ' +
'AND created >= 2022-03-28 ' +
'AND assignee in (yurui, wangchengjie, xujian4, yinguanqun, ' +
'yangyabing, lushijie, jitao, tianhao2, wuyuyang, chenmingjie, ' +
'shantenghui, wuqicong, panzheqi, linjingyao, xiayan, wusong, ' +
'yinrongjie, songjingjing, zhuzhoulin, chenhongnian, bingguanqi, ' +
'luoxiaojing, yinshangsheng, chensixiong, hanjing, lihao3, ' +
'lihaorui, duweibin, chenzhiwei2) ' +
'ORDER BY created ASC, assignee ASC, updated DESC')
for single in jira_issues:
print('key: {}, assignee: {}, type: {}, created: {}'.format(
single.key, single.fields.assignee, single.fields.issuetype,
single.fields.created))