Hello!
This is my script:
string jql = "cf[10001] is not EMPTY and issuetype = \"Development task\" and " + argv[0];
string[] issues = selectIssues(jql);
runAs("jira-system");
for(string is in issues){
if(!(contains(%is%.customfield_10001, "EPIC"))){
runnerLog("Non-Linked-issue: " + %is%.key);
runnerLog("--+--");
issues = issues - %is%.key;
}
}
return issues;
This is my JQL-search №1:
key in silJQLList("GetDevTasksFromEpics.sil", "created >= startOfYear()")
- WORK (about 1600 issues)
This is my JQL-seach №2:
key in silJQLList("GetDevTasksFromEpics.sil", "created >= startOfYear(-1)")
- DOESTN'T WORK (no issues)
I see in logs something that:
"Caused by: com.keplerrominfo.sil.lang.SILException: Field >><< cannot be matched against a standard field, a custom field or an alias. What is it?"
Maybe there are rules that allow me to see only limited issue list?
Роман, снова привет тебе!
Подскажи, пожалуйста, добавление строчки if(isNotNull(is.customfield_10001)) для чего нужно? Мы же уже в выборке по JQL указали, что показывают задачи, которые с ненулевыми значениями в поле.
Привет, не работает ?
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.
HI. can you try this code:
string jql = "cf[10001] is not EMPTY and issuetype = \"Development task\" and " + argv[0];
string[] issues = selectIssues(jql);
runAs("jira-system");
for(string is in issues){
if(isNotNull(is.customfield_10001)){
if(!(contains(%is%.customfield_10001, "EPIC"))){
runnerLog("Non-Linked-issue: " + %is%.key);
runnerLog("--+--");
issues = issues - %is%.key;
}
}
}
return issues;
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.