|
Lines 478-489
Link Here
|
| 478 |
if (bugzillaVersion == null) { |
478 |
if (bugzillaVersion == null) { |
| 479 |
bugzillaVersion = "2.18"; |
479 |
bugzillaVersion = "2.18"; |
| 480 |
} |
480 |
} |
| 481 |
if (bugzillaVersion.compareTo("3.1") < 0 |
481 |
if (status == BUGZILLA_REPORT_STATUS.NEW || status == BUGZILLA_REPORT_STATUS.ASSIGNED |
| 482 |
&& (status == BUGZILLA_REPORT_STATUS.NEW || status == BUGZILLA_REPORT_STATUS.ASSIGNED |
482 |
|| status == BUGZILLA_REPORT_STATUS.REOPENED || status == BUGZILLA_REPORT_STATUS.UNCONFIRMED) { |
| 483 |
|| status == BUGZILLA_REPORT_STATUS.REOPENED || status == BUGZILLA_REPORT_STATUS.UNCONFIRMED)) { |
483 |
if (bugzillaVersion.compareTo("3.1") < 0) { |
| 484 |
// old bugzilla workflow is used |
484 |
// old bugzilla workflow is used |
| 485 |
addOperation(bugReport, BugzillaOperation.reassign); |
485 |
addOperation(bugReport, BugzillaOperation.reassign); |
| 486 |
addOperation(bugReport, BugzillaOperation.reassignbycomponent); |
486 |
addOperation(bugReport, BugzillaOperation.reassignbycomponent); |
|
|
487 |
} else { |
| 488 |
BugzillaAttribute key = BugzillaAttribute.SET_DEFAULT_ASSIGNEE; |
| 489 |
TaskAttribute operationAttribute = bugReport.getRoot().getAttribute(key.getKey()); |
| 490 |
if (operationAttribute == null) { |
| 491 |
operationAttribute = bugReport.getRoot().createAttribute(key.getKey()); |
| 492 |
operationAttribute.getMetaData() |
| 493 |
.defaults() |
| 494 |
.setReadOnly(key.isReadOnly()) |
| 495 |
.setKind(key.getKind()) |
| 496 |
.setLabel(key.toString()) |
| 497 |
.setType(key.getType()); |
| 498 |
operationAttribute.setValue("0"); |
| 499 |
} |
| 500 |
} |
| 487 |
} |
501 |
} |
| 488 |
} |
502 |
} |
| 489 |
|
503 |
|