|
Lines 584-601
Link Here
|
| 584 |
// and additional elements that may not appear in the incoming xml |
584 |
// and additional elements that may not appear in the incoming xml |
| 585 |
// stream but need to be present for bug submission / not always dirty |
585 |
// stream but need to be present for bug submission / not always dirty |
| 586 |
// state handling |
586 |
// state handling |
| 587 |
BugzillaAttribute[] reportElements = { BugzillaAttribute.SHORT_DESC, BugzillaAttribute.BUG_STATUS, |
587 |
BugzillaAttribute[] reportElements1 = { BugzillaAttribute.SHORT_DESC, BugzillaAttribute.BUG_STATUS, |
| 588 |
BugzillaAttribute.RESOLUTION, BugzillaAttribute.BUG_ID, BugzillaAttribute.REP_PLATFORM, |
588 |
BugzillaAttribute.RESOLUTION, BugzillaAttribute.BUG_ID, BugzillaAttribute.REP_PLATFORM, |
| 589 |
BugzillaAttribute.PRODUCT, BugzillaAttribute.OP_SYS, BugzillaAttribute.COMPONENT, |
589 |
BugzillaAttribute.PRODUCT, BugzillaAttribute.OP_SYS, BugzillaAttribute.COMPONENT, |
| 590 |
BugzillaAttribute.VERSION, BugzillaAttribute.PRIORITY, BugzillaAttribute.BUG_SEVERITY, |
590 |
BugzillaAttribute.VERSION, BugzillaAttribute.PRIORITY, BugzillaAttribute.BUG_SEVERITY, |
| 591 |
BugzillaAttribute.ASSIGNED_TO, BugzillaAttribute.TARGET_MILESTONE, BugzillaAttribute.REPORTER, |
591 |
BugzillaAttribute.ASSIGNED_TO }; |
| 592 |
BugzillaAttribute.DEPENDSON, BugzillaAttribute.BLOCKED, BugzillaAttribute.BUG_FILE_LOC, |
592 |
BugzillaAttribute[] reportElements2 = { BugzillaAttribute.REPORTER, BugzillaAttribute.DEPENDSON, |
| 593 |
BugzillaAttribute.NEWCC, BugzillaAttribute.KEYWORDS, BugzillaAttribute.CC, |
593 |
BugzillaAttribute.BLOCKED, BugzillaAttribute.BUG_FILE_LOC, BugzillaAttribute.NEWCC, |
| 594 |
BugzillaAttribute.NEW_COMMENT, BugzillaAttribute.QA_CONTACT, BugzillaAttribute.STATUS_WHITEBOARD }; |
594 |
BugzillaAttribute.KEYWORDS, BugzillaAttribute.CC, BugzillaAttribute.NEW_COMMENT }; |
| 595 |
|
595 |
|
| 596 |
for (BugzillaAttribute element : reportElements) { |
596 |
TaskRepository taskRepository = existingReport.getAttributeMapper().getTaskRepository(); |
|
|
597 |
|
| 598 |
for (BugzillaAttribute element : reportElements1) { |
| 599 |
BugzillaTaskDataHandler.createAttribute(existingReport, element); |
| 600 |
} |
| 601 |
String useParam = taskRepository.getProperty(IBugzillaConstants.BUGZILLA_PARAM_USETARGETMILESTONE); |
| 602 |
if (useParam != null && useParam.equals("true")) { //$NON-NLS-1$ |
| 603 |
BugzillaTaskDataHandler.createAttribute(existingReport, BugzillaAttribute.TARGET_MILESTONE); |
| 604 |
} |
| 605 |
for (BugzillaAttribute element : reportElements2) { |
| 597 |
BugzillaTaskDataHandler.createAttribute(existingReport, element); |
606 |
BugzillaTaskDataHandler.createAttribute(existingReport, element); |
| 598 |
} |
607 |
} |
|
|
608 |
useParam = taskRepository.getProperty(IBugzillaConstants.BUGZILLA_PARAM_USEQACONTACT); |
| 609 |
if (useParam != null && useParam.equals("true")) { //$NON-NLS-1$ |
| 610 |
BugzillaTaskDataHandler.createAttribute(existingReport, BugzillaAttribute.QA_CONTACT); |
| 611 |
} |
| 612 |
useParam = taskRepository.getProperty(IBugzillaConstants.BUGZILLA_PARAM_USESTATUSWHITEBOARD); |
| 613 |
if (useParam != null && useParam.equals("true")) { //$NON-NLS-1$ |
| 614 |
BugzillaTaskDataHandler.createAttribute(existingReport, BugzillaAttribute.STATUS_WHITEBOARD); |
| 615 |
} |
| 616 |
|
| 599 |
} |
617 |
} |
| 600 |
|
618 |
|
| 601 |
public static String getBugUrlWithoutLogin(String repositoryUrl, String id) { |
619 |
public static String getBugUrlWithoutLogin(String repositoryUrl, String id) { |