Forums

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

the variable cfvalues is undeclared

Sam July 30, 2020

-Untitled.png

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Andreas Hibner
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 25, 2021

Dear community,

I've got the same issue. In my case I'm using the workflow post function "Create SubTask" (ScriptRunner-PlugIn). Every thing is fine declared, using the inline script editor.

Bildschirmfoto 2021-01-25 um 13.26.20.png

But outsourcing the code in the script editor is causing the error message "the variable [cfValues] is undeclared". 

Path of the outsourced script file:

Bildschirmfoto 2021-01-25 um 13.09.45.png

Error message in the script runner code editor:Bildschirmfoto 2021-01-25 um 13.19.52.png

By the way, the code is working fine, even through the error message.

How can I declare the cfValues collection correctly in the outsourced script?

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 31, 2020

This suggests that you are trying to use cfvalues in a context where it does not exist.

Could you give us some more detail about where your script is running, what it is trying to do and so-on?

TAGS
AUG Leaders

Atlassian Community Events