hi team,
I am passing below SIL script code in my workflow validator on In progress transition. It doesn't work. When I click on status button, the transition doesn't execute.
PFB problem statement.
When I check whether the Jira system field, due date is null in my SIL script, I get check error, and I am not able to display that error on my edit screen.
Also, If I add same for any other custom field, the transition doesn't get executed. I am neither able to proceed on next screen nor the error message is displayed on screen.
code:
errorMsg="Kindly set due date"
if(isNull(duedate) || isNull(customfield_12345)
{
return false, "error",errorMsg;
}
Check error:
Undefined variable 'duedate'. Please define it prior to usage.
Since, duedate is system field, how do we declare it? Is the syntax valid to check if duedate field in null? If I remove due date check, and just keep my custom field null check, then I am not able to execute transition. As mentioned above, next screen doesn't show up.
Thanks
Ashima Bhatia