Greeting! I'm trying to copy assignee from parent link ("is Parent of") to child("is Child of") by SIL listener
Help me pls to fix this script.
My script looks like this:
if(project == "AISRITS" && issueType == "Requirement"){
JIssueLink[] jIssueLinks = getIssueLinksDetail(key);
string assignee;
string papa = linkedIssues(key, "Parent");
string nepapa = linkedIssues(key, "Child");
for(JIssueLink jIssueLink in jIssueLinks){
if(jIssueLink.issue.issueType == "Sub-Requirement" &&
jIssueLink.description == "is Child of"{
//jIssueLink.description == "is Parent of"{
nepapa.assignee = papa.assignee;
}
}
}
Hi!
Does your script throw an error or does it do something different then you want.
Regardless, it still contains a syntax error. You are missing a ) after "is Child of". So to run the code should be:
if (project == "AISRITS" && issueType == "Requirement") {
JIssueLink[] jIssueLinks = getIssueLinksDetail(key);
string assignee;
string papa = linkedIssues(key, "Parent");
string nepapa = linkedIssues(key, "Child");
for (JIssueLink jIssueLink in jIssueLinks) {
if (jIssueLink.issue.issueType == "Sub-Requirement" &&
jIssueLink.description == "is Child of") {
nepapa.assignee = papa.assignee;
}
}
}
Hope this helps!
Jeroen
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.