my first two lines
def issueKey = issue.key
logger.info "issueKey" + issueKey
in the additional code area of a workflow post function show a
[Static type checking] - The variable [issue] is undeclared.
@line 1, column 16
What is wrong or missing with this code?
thank you for your input. Nevertheless I think that 'issue', as it doesn't need any declaration, should be well known so that the corresponding static errors could be hidden. Showing errors where there is no error is really very misleading and I am used to not check in code showing errors. I reference the issue object in many lines and the amount of shown insignificant errors makes it difficult to focus on real errors.
Best regards, Georges
thank you very much. I'm sorry, but these static type checking errors are still present in the editor window of workflow post functions.
Do apps in the cloud have a release number? Where can I see the release number for ScriptRunner and what's the number of the release with the named solution?
I can confirm in the cloud we do not have a release number.
Can you please share a screenshot showing what static type checking warnings you are still receiving?
As mentioned previously, there will always be some static type checking errors where the compiler cannot fully understand the code, and these are explained in the doc
The static type checking warnings are not errors as you have mentioned, and are simply just warnings which can be ignored as if you test and run the code then it should run as expected.
I can confirm that thee warnings are just static type checking warnings as described here now that the bindings have been restored.
As mentioned in this page the warnings can never be fully removed due to the way which Groovy works in a language and with these warnings, I would always recommend testing the script as these will not stop the script from working as expected.
Hello Community! My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. In this video, I'll share my favorite Trello templates. Templates mentioned in ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events