public boolean setEffort(DefaultIssue issue, @Nullable Duration value, IssueChangeContext context) {
Duration oldValue = issue.effort();
if (!Objects.equals(value, oldValue)) {
- issue.setEffort(value != null ? value : null);
+ issue.setEffort(value);
issue.setFieldChange(context, TECHNICAL_DEBT, oldValue != null ? oldValue.toMinutes() : null, value != null ? value.toMinutes() : null);
issue.setUpdateDate(context.date());
issue.setChanged(true);
+++ /dev/null
-{
- "licenses": [
- {
- "key": "sonar.devcockpit.license.secured",
- "name": "Dev Cockpit",
- "value": "ABCD",
- "product": "other",
- "organization": "Unknown",
- "expiration": "2010-01-01",
- "serverId": "54321",
- "type": "EVALUATION",
- "invalidProduct": true,
- "invalidExpiration": true,
- "invalidServerId": true
- },
- {
- "key": "sonar.governance.license.secured",
- "name": "Governance",
- "value": "EFHG",
- "product": "governance",
- "organization": "SonarSource",
- "expiration": "2099-01-01",
- "serverId": "12345",
- "type": "PRODUCTION",
- "additionalProperties": {
- "other": "value"
- }
- }
- ]
-}