help ! help! I want to link a issue to the other when this issue created by using the groovy runner I
is anybody has a script >?
Community moderators have prevented the ability to post new answers.
Hi Fanglin Shu,
The next code works for me:
// Create the new issue
Issue newIssue = issueManager.createIssueObject(admin, newMutableIssue);
if(newIssue == null) {
log.error("error creating new issue");
}
else {
// Set link
IssueLinkType iLinkType = findIssueLinkTypeByName(ISSUE_LINK_TYPE_NAME);
if(iLinkType == null) {
log.error("IMPOSSIBLE TO LINK ISSUE " + myIssue.getKey());
}
else {
issueLinkManager.createIssueLink(myIssue.getId(), newIssue.getId(), iLinkType.getId(), Long.valueOf(0), admin);
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.