userSession.logIn("john")
.addProjectPermission(USER, project, file);
db.issues().insertFieldDiffs(issueDto, new FieldDiffs()
- .setUserUuid(user.getUuid())
- .setDiff("severity", "MAJOR", "BLOCKER")
- .setWebhookSource("github")
- .setExternalUser("toto")
- .setCreationDate(new Date())
- .setCreationDate(DateUtils.parseDateTime("2014-03-04T23:03:44+0100")));
+ .setUserUuid(user.getUuid())
+ .setDiff("issueStatus", "OPEN", "ACCEPTED")
+ .setWebhookSource("github")
+ .setExternalUser("ext-user")
+ .setCreationDate(DateUtils.parseDateTime("2014-03-04T23:03:44+0100")),
+ new FieldDiffs()
+ .setDiff("from_branch", "branch-123", "main")
+ .setDiff("assignee", null, "assignee123")
+ .setCreationDate(DateUtils.parseDateTime("2014-03-04T23:05:44+0100")));
String result = tester.newRequest().setParam("issue", issueDto.getKey()).execute().getInput();
.setSince("4.1")
.setChangelog(
new Change("10.4", "'issueStatus' key is added in the differences"),
- new Change("10.4", "'status' and 'resolution' keys are now deprecated in the differences"),
+ new Change("10.4", "'status', 'resolution', 'severity' and 'type' keys are now deprecated in the differences"),
new Change("9.7", "'externalUser' and 'webhookSource' information added to the answer"),
new Change("6.3", "changes on effort is expressed with the raw value in minutes (instead of the duration previously)"))
.setHandler(this)
"isUserActive": true,
"avatar": "b0d8c6e5ea589e6fc3d3e08afb1873bb",
"creationDate": "2014-03-04T23:03:44+0100",
- "externalUser": "toto",
+ "externalUser": "ext-user",
"webhookSource": "github",
"diffs": [
{
- "key": "severity",
- "newValue": "BLOCKER",
- "oldValue": "MAJOR"
+ "key": "issueStatus",
+ "newValue": "ACCEPTED",
+ "oldValue": "OPEN"
+ }
+ ]
+ },
+ {
+ "creationDate": "2014-03-04T23:05:44+0100",
+ "diffs": [
+ {
+ "key": "from_branch",
+ "newValue": "main",
+ "oldValue": "branch-123"
+ },
+ {
+ "key": "assignee",
+ "newValue": "assignee123"
}
]
}