Hello, im beginning with SIL and Power Scripts, however whether i try to create my first script:
string [] fields = getIssueFieldNames(issue.key);
string customKpiField = "";
for(string _fieldName in fields){
if(contains(toLower(_fieldName), "kpi")){
customKpiField = _fieldName;
}
}
logPrint("Error", "KPI Field: "+customKpiField);
I get the following errors:
- [SIL Error on line: 1, column: 20] Variable fields cannot be initialized with type null
- [SIL Error on line: 1, column: 20] Routine >>getIssueFieldNames<< is not defined!
- [SIL Error on line: 1, column: 44] Cannot check accessor for null types
- Failed to retrieve from cache [[issue]]
I assume all errors are because of the function getIssueFieldNames therefore it takes a null as a type declaration and everything else...
can i get some help please?