Skip to content

Commit

Permalink
RD-15082 das-jira-issue-contains-null-values-for-status-and-status-ca…
Browse files Browse the repository at this point in the history
…tegory (#8)

- Typo
  • Loading branch information
alexzerntev authored Nov 8, 2024
1 parent 6e63257 commit 307b1fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion das-jira-connector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@

<!-- RAW Labs Dependencies -->
<das-java-sdk-version>0.1.2</das-java-sdk-version>
<das-server-scala-version>0.1.5</das-server-scala-version>
<das-server-scala-version>0.1.6</das-server-scala-version>
<jira-rest-client-version>1.0-SNAPSHOT</jira-rest-client-version>
<protocol-das.version>0.1.4</protocol-das.version>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ protected void processFields(
addToRow("project_id", rowBuilder, ((Map<String, Object>) p).get("id"));
});

Optional.ofNullable(fields.get(names.containsKey("Status") ? names.get("status") : "Status"))
Optional.ofNullable(fields.get(names.getOrDefault("Status", "Status")))
.ifPresent(
s -> {
Map<String, Object> status = (Map<String, Object>) s;
Expand Down Expand Up @@ -84,7 +84,7 @@ protected void processFields(
ArrayList<Object> components = (ArrayList<Object>) fields.get(names.get("Components"));
Optional.ofNullable(components)
.ifPresent(
_ -> {
_ -> {
List<String> componentIds = new ArrayList<>();
components.forEach(
comp -> componentIds.add(((Map<String, Object>) comp).get("id").toString()));
Expand Down

0 comments on commit 307b1fc

Please sign in to comment.