Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RESTList not returns its value to Active Choices Reactive Parameters when it referenced #204

Open
cmarsha opened this issue Apr 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@cmarsha
Copy link

cmarsha commented Apr 1, 2024

Describe the bug
Hi! The RESTList parameter returns its own description instead of the value when it used as a "referencedParameters" in an activeChoiceHtml parameter

To Reproduce
Steps to reproduce the behavior:

  1. Create a job with the RESTList parameter type and the name "RESTList_ParameterName", which returns some list of values. And write something in the description field!
  2. Create a second parameter of the type "Active Choices Reactive Reference Parameter" with the following parameters:
    activeChoiceHtml(choiceType: 'ET_FORMATTED_HTML',
    name: 'Param2',
    omitValueField: false,
    randomName: 'choice-parameter-3402384435426128',
    referencedParameters: 'RESTList_ParameterName',
    script: groovyScript(fallbackScript: [sandbox: true, script: 'return ["ERROR"]'], script: [sandbox: true, script: 'return ["${RESTList_ParameterName}"]'])
  3. Save it.
  4. Click on "Build with parameters"
  5. In the Param2 field you will see the description from the RESTList_ParameterName param.

Expected behavior
I expected to see the value but not the description of "RESTList_ParameterName" parameter.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

  • Jenkins: 2.426.3
  • Plugin: IDN
  • Browser chrome

Additional context
Add any other context about the problem here.

@cmarsha cmarsha added the bug Something isn't working label Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant