- Common ways to obtain IssueInputParameters
private void myMethod () {}
@Override protected void finaliseOperation(Collection<String> finalValue, IssueInputParameters parameters, ErrorCollection errors) { Long[] ids = toLongIds(finalValue, IssueFieldConstants.COMPONENTS, errors); if (ids != null) { parameters.setComponentIds(ids); } } }
public void populateCurrentValue(final IssueInputParameters inputParameters, final CopyIssueBean bean, final FieldLayoutItem fieldLayoutItem, final Project project) { final List<ComponentBean> components = makeSureNotNull(bean.getComponents()); final List<Long> componentIds = new ArrayList<Long>(); for (ComponentBean component : components) { Long componentId = findProjectComponent(component.getName(), project.getId()); if (componentId != null) { componentIds.add(componentId); } } if (componentIds.size() > 0) { Long[] ids = new Long[componentIds.size()]; componentIds.toArray(ids); inputParameters.setComponentIds(ids); } }
issueInputParameters.setFixVersionIds(SoapUtils.getRemoteEntityIdsAsLong(rIssue.getFixVersions())); issueInputParameters.setAffectedVersionIds(SoapUtils.getRemoteEntityIdsAsLong(rIssue.getAffectsVersions())); issueInputParameters.setComponentIds(SoapUtils.getRemoteEntityIdsAsLong(rIssue.getComponents()));