Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53540

Dynamically allow user to provide information in "Input text box" field for Active Choices Reactive Reference Parameter

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: active-choices-plugin
    • Labels:
    • Environment:
      Jenkins ver. 2.107.2
      Active Choices Plug-in v2.1
      Dynamic Extended Choice Parameter Plug-In v1.0.1
      Extended Choice Parameter Plug-In v0.76
    • Similar Issues:

      Description

      We have a scenario where if user selects an option to install rpm (choice parameter) then display an additional field for user to provide input rpm package info in Jenkins UI.

       Please see Input text box disabled.png and Install input text box field.png for reference.
       

      If user selects option as rollback (choice parameter) then don't  display any additional parameters in Jenkins UI.

      Please see Rollback still displays input text box field.png for reference.

      Note:- "RPM_Package_Action" is an active choice reactive reference parameter
      "packagenames" is an active choice parameter

      Let me know if any additional information is required.

      Thanks,
      Pavan.

       

       

       

        Attachments

          Activity

          Hide
          ioannis Ioannis Moutsatsos added a comment -

          This behavior is already present in AC Reactive Reference. Return a 'Formatted HTML' parameter  (not an Input Text Box) of <input> type and insure that under advanced options you select 'Omit value filed' You can even provide a default value that can be further edited by the user.

          Something like this would work:

          return """<input name="value" value="${ReactiveRefParam}" class="setting-input" type="text">"""

          Show
          ioannis Ioannis Moutsatsos added a comment - This behavior is already present in AC Reactive Reference. Return a 'Formatted HTML' parameter   (not an Input Text Box) of <input> type and insure that under advanced options you select 'Omit value filed' You can even provide a default value that can be further edited by the user. Something like this would work: return   """<input name="value" value="${ReactiveRefParam}" class="setting-input" type="text">"""
          Hide
          jenbeg Hao Maio added a comment -

          The return statement doestn work ... at least the ${ReactiveRefParam} resolves to empty

          Show
          jenbeg Hao Maio added a comment - The return statement doestn work ... at least the ${ReactiveRefParam } resolves to empty
          Hide
          ioannis Ioannis Moutsatsos added a comment -

          You understand of course that ${ReactiveRefParam} is either a referenced parameter (from upstream input) or a variable computed in within the code block of the AC Reactive Reference. If you are still having difficulty, please, submit your configuration for me to provide additional feedback. Bets regards

          Show
          ioannis Ioannis Moutsatsos added a comment - You understand of course that ${ReactiveRefParam} is either a referenced parameter (from upstream input) or a variable computed in within the code block of the AC Reactive Reference. If you are still having difficulty, please, submit your configuration for me to provide additional feedback. Bets regards

            People

            • Assignee:
              kinow Bruno P. Kinoshita
              Reporter:
              pavan_tatikonda Venkata Siva Naga Tatikonda
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: