Skip to content

Commit 04348d8

Browse files
committed
Fixed logging to ZAPI
1 parent cfdda36 commit 04348d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/frameworkium/jira/zapi/Execution.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,12 @@ private void updateStatusAndComment(final Integer executionId, final int status,
9696
comment = comment.substring(0, 747) + "...";
9797
}
9898
obj.put("comment", comment);
99+
100+
given().contentType("application/json").and().body(obj.toString()).then().put("execution/" + executionId + "/execute");
101+
99102
} catch (JSONException e) {
100103
logger.error("Update status and comment failed", e);
101104
}
102-
103-
given().contentType("application/json").and().body(obj).then().put("execution/" + executionId + "/execute");
104105
}
105106

106107
private void deleteExistingAttachments(final Integer executionId) {

0 commit comments

Comments
 (0)