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

Jira Version Parameter always null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • jira-plugin
    • None
    • Jenkins: 2.60.1
      JIRA plugin: 2.4.2

      JiraVersionParameterValue doesn't implement getValue(). The parent class has a getValue() that always returns null. As a result, using a JiraVersionParameterDefinition for input always results in a null value.

       

      Here was the equivalent fix in 2015 for JiraIssueParameterValue: https://github.com/jenkinsci/jira-plugin/commit/0100428a5528e7aefd99a1800cedd66441547110

       

      In the below example, approval.version is always null. However, approval.approver is set correctly.

      def input_params = [[ $class: 'JiraVersionParameterDefinition', name: 'version', description: 'Version to be assigned', jiraProjectKey: 'TWEN',
      jiraShowReleased: 'false', jiraShowArchived: 'false' ]]
      
      def approval = input id: 'release-po-approval', message: 'Approve the release?', ok: 'Approve', parameters: input_params, submitterParameter: 'approver'

            Unassigned Unassigned
            dbresson David Bresson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: