Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaofang li
MeterSphere
Commits
bde6fdea
Commit
bde6fdea
authored
3 years ago
by
chenjianxing
Committed by
jianxing
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix: 解决jira单选框kv传值错误问题,多选框复选框创建失败问题 #5518
parent
5ceeaaab
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
backend/src/main/java/io/metersphere/track/issue/JiraPlatform.java
+13
-1
...rc/main/java/io/metersphere/track/issue/JiraPlatform.java
frontend/src/business/components/settings/workspace/template/CustomFiledComponent.vue
+6
-2
...ents/settings/workspace/template/CustomFiledComponent.vue
with
19 additions
and
3 deletions
+19
-3
backend/src/main/java/io/metersphere/track/issue/JiraPlatform.java
+
13
-
1
View file @
bde6fdea
...
...
@@ -232,10 +232,22 @@ public class JiraPlatform extends AbstractIssuePlatform {
if
(
StringUtils
.
isNotBlank
(
item
.
getCustomData
()))
{
if
(
StringUtils
.
isNotBlank
(
item
.
getValue
()))
{
if
(
StringUtils
.
isNotBlank
(
item
.
getType
())
&&
StringUtils
.
equalsAny
(
item
.
getType
(),
"select"
,
"
multipleSelect"
,
"checkbox"
,
"radio"
,
"member"
,
"multipleM
ember"
))
{
StringUtils
.
equalsAny
(
item
.
getType
(),
"select"
,
"
radio"
,
"m
ember"
))
{
JSONObject
param
=
new
JSONObject
();
param
.
put
(
"id"
,
item
.
getValue
());
fields
.
put
(
item
.
getCustomData
(),
param
);
}
else
if
(
StringUtils
.
isNotBlank
(
item
.
getType
())
&&
StringUtils
.
equalsAny
(
item
.
getType
(),
"multipleSelect"
,
"checkbox"
,
"multipleMember"
))
{
JSONArray
attrs
=
new
JSONArray
();
if
(
StringUtils
.
isNotBlank
(
item
.
getValue
()))
{
JSONArray
values
=
JSONObject
.
parseArray
(
item
.
getValue
());
values
.
forEach
(
v
->
{
JSONObject
param
=
new
JSONObject
();
param
.
put
(
"id"
,
v
);
attrs
.
add
(
param
);
});
}
fields
.
put
(
item
.
getCustomData
(),
attrs
);
}
else
{
fields
.
put
(
item
.
getCustomData
(),
item
.
getValue
());
}
...
...
This diff is collapsed.
Click to expand it.
frontend/src/business/components/settings/workspace/template/CustomFiledComponent.vue
+
6
-
2
View file @
bde6fdea
...
...
@@ -32,7 +32,9 @@
<el-checkbox
v-for=
"(item, index) in data.options ? data.options : []"
:key=
"index"
@
change=
"handleChange"
:label=
"getTranslateOption(item)"
></el-checkbox>
:label=
"item.value"
>
{{
getTranslateOption
(
item
)
}}
</el-checkbox>
</el-checkbox-group>
<el-radio
...
...
@@ -42,7 +44,9 @@
v-for=
"(item,index) in data.options ? data.options : []"
:key=
"index"
@
change=
"handleChange"
:label=
"getTranslateOption(item)"
></el-radio>
:label=
"item.value"
>
{{
getTranslateOption
(
item
)
}}
</el-radio>
<el-input-number
v-else-if=
"data.type === 'int'"
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help