Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test_platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wallen姚文辉
test_platform
Commits
00b1323a
Commit
00b1323a
authored
May 20, 2024
by
Wallen姚文辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug修复人逻辑
parent
d0d0b7cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Tool.py
controller/Tool.py
+6
-0
No files found.
controller/Tool.py
View file @
00b1323a
...
@@ -134,9 +134,15 @@ def reportinfo():
...
@@ -134,9 +134,15 @@ def reportinfo():
for
i
in
bug
:
for
i
in
bug
:
info
=
requests
.
request
(
"get"
,
jiraAddress
+
"/rest/api/latest/issue/"
+
i
.
get
(
"key"
),
headers
=
headers
)
.
json
()
info
=
requests
.
request
(
"get"
,
jiraAddress
+
"/rest/api/latest/issue/"
+
i
.
get
(
"key"
),
headers
=
headers
)
.
json
()
m
=
requests
.
request
(
"get"
,
jiraAddress
+
"/secure/AjaxIssueEditAction!default.jspa?decorator=none&issueId="
+
str
(
i
.
get
(
"id"
)),
headers
=
headers
)
.
json
()
m
=
requests
.
request
(
"get"
,
jiraAddress
+
"/secure/AjaxIssueEditAction!default.jspa?decorator=none&issueId="
+
str
(
i
.
get
(
"id"
)),
headers
=
headers
)
.
json
()
count
=
0
for
j
in
m
.
get
(
"fields"
):
for
j
in
m
.
get
(
"fields"
):
if
j
.
get
(
"label"
)
==
"严重程度"
:
if
j
.
get
(
"label"
)
==
"严重程度"
:
i
[
"Severity"
]
=
info
[
"fields"
][
j
.
get
(
"id"
)]
.
get
(
"value"
)
i
[
"Severity"
]
=
info
[
"fields"
][
j
.
get
(
"id"
)]
.
get
(
"value"
)
count
+=
1
if
j
.
get
(
"label"
)
==
"BUG修复者"
:
i
[
"ascription"
]
=
info
[
"fields"
][
j
.
get
(
"id"
)]
and
info
[
"fields"
][
j
.
get
(
"id"
)]
.
get
(
"displayName"
)
or
i
[
"assigneeName"
]
count
+=
1
if
count
>=
2
:
break
break
res
=
{
"project"
:
result
[
"projects"
][
0
][
"name"
],
"sprint"
:
sprint
,
"people"
:
peoples
,
"story"
:
story
,
"bug"
:
bug
,
"testcase"
:
testcase
,
"statusMap"
:
status
,
"priorityMap"
:
priority
,
"typeMap"
:
type_
}
res
=
{
"project"
:
result
[
"projects"
][
0
][
"name"
],
"sprint"
:
sprint
,
"people"
:
peoples
,
"story"
:
story
,
"bug"
:
bug
,
"testcase"
:
testcase
,
"statusMap"
:
status
,
"priorityMap"
:
priority
,
"typeMap"
:
type_
}
return
jsonify
({
"code"
:
200
,
"message"
:
"请求成功"
,
"data"
:
res
}),
200
return
jsonify
({
"code"
:
200
,
"message"
:
"请求成功"
,
"data"
:
res
}),
200
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment