Well there is no ready component that can do this so you would need to do most of the work "by hand". Stapler can help you with some of the wiring if you need to talk to the backend;
If you annotate a java method with @JavaScriptMethod <http://stapler.kohsuke.org/apidocs/org/kohsuke/stapler/bind/JavaScriptMethod.html> it can get exposed to the front end by using the stapler bind tag <http://stapler.kohsuke.org/jelly-taglib-ref.html> *(somehow missing from the docs)* that will produce a javascript proxy object for you. There are some examples in core and some plugins that you hopefully can find with some searching. /B On Thu, Jan 26, 2017 at 11:45 PM, 'Claudiu Guiman' via Jenkins Developers < [email protected]> wrote: > Hi, > I’m trying to dynamically update the items in a dropdown list when the > user performes a certain action (clicked button or selected some option). > Does the jelly syntax provide something or do I need to write my own > JavaScript code? If I need to write my JavaScript code I’ll also need to > listen to some specific URL (my-jenkins-master.com/my- > custom-get-dynamic-data) and return a JSON there. How can I do that? > > Probably this question was asked before, but my search skills have failed > me. > > Thanks, > Claudiu > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/jenkinsci-dev/CY1PR0301MB166082014F8FC11369C > 4DCE8D7770%40CY1PR0301MB1660.namprd03.prod.outlook.com > <https://groups.google.com/d/msgid/jenkinsci-dev/CY1PR0301MB166082014F8FC11369C4DCE8D7770%40CY1PR0301MB1660.namprd03.prod.outlook.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Robert Sandell *Software Engineer* *CloudBees Inc.* -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS330rgVfOOO7BYK1H3-DVmwxjX2yJQgiCAJ4v%2ByjaZSag%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
