Skip to content

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

Open
@cmarsha

Description

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.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions