Forums

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

SIL/Power Scripts - update Portfolio target start/end

Konrad Garus August 20, 2019
    I'm trying to update Portfolio target start/end date from Power Scripts. I'm even trying something as simple as:
    %k%.customfield_10109 = currentDate();
    However, that ends up with the following error. Any other custom date field works, it seems to be something special about Portfolio. Any ideas on how I can get it to work with these fields, or work around it?
    The error is:
      Exception while executing SIL program >>null<<: [SIL Error on line: 3, column: 25] com.keplerrominfo.common.util.MutableDate cannot be cast to com.keplerrominfo.common.util.MutableStringcom.keplerrominfo.sil.lang.SILInfoException: [SIL Error on line: 3, column: 25] com.keplerrominfo.common.util.MutableDate cannot be cast to com.keplerrominfo.common.util.MutableStringat com.keplerrominfo.sil.lang.SILUtils.error(SILUtils.java:131)at com.keplerrominfo.sil.lang.SILUtils.throwAway(SILUtils.java:114)at com.keplerrominfo.sil.lang.SILUtils.throwAway(SILUtils.java:110)at com.keplerrominfo.sil.lang.grammar.ASTAttribNode.interpret(ASTAttribNode.java:62)at com.keplerrominfo.sil.lang.grammar.SILNode.interpret(SILNode.java:139)at com.keplerrominfo.sil.lang.grammar.ASTParseNode.interpret(ASTParseNode.java:37)at com.keplerrominfo.sil.lang.executors.DirectInterpreterExecutor.interpret(DirectInterpreterExecutor.java:60)at com.keplerrominfo.sil.lang.executors.CachedInterpreterExecutor.interpret(CachedInterpreterExecutor.java:67)at com.keplerrominfo.sil.lang.SILInterpreter.interpret(SILInterpreter.java:139)at com.keplerrominfo.jira.commons.ivm.IssueSILInterpreter.interpret(IssueSILInterpreter.java:191)at com.keplerrominfo.refapp.sil.impl.AbstractSimpleLanguageService.interpret(AbstractSimpleLanguageService.java:166)at com.keplerrominfo.refapp.sil.SILRunCallable.createResult(SILRunCallable.java:63)at com.keplerrominfo.jira.commons.sil.impl.JIRASILRunCallable.createResult(JIRASILRunCallable.java:68)at com.keplerrominfo.jira.commons.sil.impl.JIRASILRunCallable.createResult(JIRASILRunCallable.java:26)at com.keplerrominfo.refapp.threading.AsyncRunnerCallable.call(AsyncRunnerCallable.java:65)at com.keplerrominfo.refapp.threading.AsyncRunnerCallable.call(AsyncRunnerCallable.java:22)at java.util.concurrent.FutureTask.run(Unknown Source)at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)at java.lang.Thread.run(Unknown Source)Caused by: java.lang.ClassCastException: com.keplerrominfo.common.util.MutableDate cannot be cast to com.keplerrominfo.common.util.MutableStringat com.keplerrominfo.sil.lang.type.StringSILType.setValue(StringSILType.java:20)at com.keplerrominfo.sil.lang.SILValue.setValue(SILValue.java:101)at com.keplerrominfo.jira.commons.ivm.IssueVariable.setAccessedValue(IssueVariable.java:95)at com.keplerrominfo.sil.lang.grammar.ASTFieldNode.setValue(ASTFieldNode.java:77)at com.keplerrominfo.sil.lang.grammar.ASTAccessorNode.setValue(ASTAccessorNode.java:49)at com.keplerrominfo.sil.lang.grammar.ASTAttribNode.interpret(ASTAttribNode.java:60)... 16 more

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events