Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

the variable cfvalues is undeclared


2 answers

1 accepted

0 votes
Answer accepted

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

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?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

464 views 16 17
Read article

Community Events

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

Events near you