Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Returned issues by SIL-JQL-seach

Borlas Team August 7, 2019

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?

2 answers

0 votes
Borlas Team August 8, 2019

Роман, снова привет тебе!

Подскажи, пожалуйста, добавление строчки if(isNotNull(is.customfield_10001)) для чего нужно? Мы же уже в выборке по JQL указали, что показывают задачи, которые с ненулевыми значениями в поле.

Roman Kersky
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 8, 2019

Привет, не работает ? 

Borlas Team August 8, 2019

Нет. Подозрение, что поиск падает по ТаймАуту.

0 votes
Roman Kersky
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 7, 2019
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;

Suggest an answer

Log in or Sign up to answer