I need to test the execution of javascript on a checkbox click event. The end goal is to call an external server that updates the issue with any changed status of the issue. I am attempting to test this on my private cloud account, but the research is for a on-prem enterprise install where the external server is on-prem. I read that javascript cannot be invoked in the description field of a custom checkbox on the Jira cloud. Is that the case?
Getting Started. Add a new custom field, then choose Advanced and then Scripted Field. Give it a name and associate it to any screens you need. Note, it won't be displayed on Create or Edit screens
That's not how scripted fields work, they don't inject javascript.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Javascript is the wrong way to do this, even if you could get it to work.
"The end goal is to call an external server that updates the issue with any changed status of the issue"
is something you should be doing with webhooks or post-functions if you mean Jira needs to tell another server something, or the REST API if it's the other system wanting to update Jira.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Jesse Eversole Javascript won't be executed on Cloud, these are part of Cloud's restricted functions. So if you want to test such, it's better you get a Jira Server instance to test it up.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jesse Eversole,
This is true. I had taken advantage of this on Jira Server before we migrated to Cloud and that functionality no longer worked upon migrating to the Cloud platform.
If possible, I'd recommend getting/generating a test server license and spinning up a test Jira Server you can use for these types of experiments.
I hope that helps!
-Jimmy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.