I've defined a Kepler pro customfield with SIL script as datatource. This customfield belongs to several projects and for each project these values have to be differents.
Thus, when I'm creating an issue, I need to know the projet in the datasource SIL script to populate the kepler pro:
string query = "SELECT servicio";
query += " FROM table";
query += " WHERE proy_key='"+project+"'";
string[] resultado = sql("XXXDB",query);
return resultado;The result in log is:
/proyectos_soporte/busqueda_serviciocatalogo/datasource_serviciocatalogo.sil<<
com.keplerrominfo.sil.lang.SILInfoException: [SIL Error on line: 1, column: 17] Script is not running in the context of an issue.Cannot get value for field project
How can I solve this problem?
Thanks in advance