Skip to content

Commit 9dca395

Browse files
authored
Release 5.13.2
2 parents ba51019 + 72a0110 commit 9dca395

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ dependencies {
4343
annotationProcessor 'com.epam.reportportal:plugin-api'
4444
} else {
4545
implementation 'com.github.reportportal:commons-dao:6298e53'
46-
implementation 'com.github.reportportal:plugin-api:8874441'
47-
annotationProcessor 'com.github.reportportal:plugin-api:8874441'
46+
implementation 'com.github.reportportal:plugin-api:f8e5bea'
47+
annotationProcessor 'com.github.reportportal:plugin-api:f8e5bea'
4848
}
4949

5050
implementation("org.apache.httpcomponents.client5:httpclient5:5.4.2") // supports gzip encoding

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=5.13.1
1+
version=5.13.2
22
description=EPAM Report Portal. Cloud Jira plugin
33
pluginId = JIRA Cloud
44

src/main/java/com/epam/reportportal/extension/jira/command/GetIssueFieldsCommand.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,11 @@ protected List<PostFormField> invokeCommand(Integration integration, Map<String,
143143
allowed.add(new AllowedValue(version.getId(), version.getName()));
144144
}
145145
}
146-
if (fieldID.equalsIgnoreCase(PRIORITY_FIELD.getValue()) && issueField.getKey().equals(PRIORITY_FIELD.name())) {
147-
allowed.add(new AllowedValue(issueField.getValue().getKey(), issueField.getValue().getName()));
148-
146+
if (fieldID.equalsIgnoreCase(PRIORITY_FIELD.getValue())) {
147+
allowed = issueField.getValue().getAllowedValues().stream()
148+
.map(value -> (JsonNode) new ObjectMapper().valueToTree(value))
149+
.map(jn -> new AllowedValue(jn.get("id").asText(), jn.get("name").asText()))
150+
.collect(Collectors.toList());
149151
}
150152
if (fieldID.equalsIgnoreCase(ISSUE_TYPE_FIELD.getValue())) {
151153
isRequired = true;

src/main/java/com/epam/reportportal/extension/jira/command/utils/JIRATicketUtils.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,7 @@ public static IssueUpdateDetails toIssueInput(JiraRestClient client, Project jir
128128
continue;
129129
}
130130
if (one.getId().equalsIgnoreCase(IssueField.PRIORITY_FIELD.value)) {
131-
if (IssuePriority.findByName(one.getValue().get(0)) != null) {
132-
issueUpdateDetails.putFieldsItem(IssueField.PRIORITY_FIELD.value, one.getValue().get(0));
133-
}
131+
issueUpdateDetails.putFieldsItem(IssueField.PRIORITY_FIELD.value, Map.entry("name", one.getValue().get(0)));
134132
continue;
135133
}
136134
if (one.getId().equalsIgnoreCase(IssueField.COMPONENTS_FIELD.value)) {

0 commit comments

Comments
 (0)