Skip to content

Commit 5a1d5fa

Browse files
committed
Use default "-1" assignee
1 parent c460e65 commit 5a1d5fa

File tree

1 file changed

+8
-1
lines changed
  • src/main/java/org/hibernate/infra/replicate/jira/service/jira/model/rest

1 file changed

+8
-1
lines changed

src/main/java/org/hibernate/infra/replicate/jira/service/jira/model/rest/JiraUser.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ public JiraUser(String propertyName, String value) {
2323
}
2424

2525
public static JiraUser unassigned(String propertyName) {
26-
return new JiraUser(propertyName, null);
26+
// {
27+
// "name": "-1"
28+
// }
29+
// Note: If the name is "-1" default assignee is used.
30+
//
31+
// Note: we do not send something like "name": null as that will get dropped
32+
// from the request and not sent at all.
33+
return new JiraUser(propertyName, "-1");
2734
}
2835
}

0 commit comments

Comments
 (0)