Hi Everyone,
I want to set component/s field of issue when its created with groovy script.
the problem is here : inherited issue object is instance of Issue class.
i have to change it MutableIssue in order to use setComponents(Collection<GenericValue> args) method
i wrote
IssueFactory issueFactory = ComponentManager.getInstance().getIssueFactory();
MutableIssue mi = issueFactory.getIssue(issue.getGenericValue());
mi.setComponents(predefinedCollection);
it doesnt work could you help me ?