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

JIRA version name/value not picked up by remote API

      Jira version variable not being picked up

      Followed the example on your main page. When i use the build with parameter link it pulls in the right versions and everything works

      But when the build is triggered externally  it triggers an error - see below
      ------------------------------------------------------------------------------
      FATAL: Unable to generate release notes for JIRA version $JiraBuild/PTP: com.atlassian.jira.rpc.exception.RemoteValidationException: Query validation failed: The value '$JiraBuild' does not exist for the field 'fixVersion'.
      AxisFault
       faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
       faultSubcode: 
       faultString: com.atlassian.jira.rpc.exception.RemoteValidationException: Query validation failed: The value '$JiraBuild' does not exist for the field 'fixVersion'. 
       faultActor: 
       faultNode: 
       faultDetail: 
      	{}com.atlassian.jira.rpc.exception.RemoteException:null 
      ------------------------------------------------------------------------------
      

      It cannot seem to find the $jiraBuild - Can anyone help?

          [JENKINS-25828] JIRA version name/value not picked up by remote API

          Please provide Jenkins and jira-plugin versions.

          Radek Antoniuk added a comment - Please provide Jenkins and jira-plugin versions.

          This actually works when you submit your job like this:

          curl -X POST --data-urlencode json='{ "parameter": [{ "name":"TEST", "issue": "PROJ-3"} ] }' http://localhost:9090/job/test/build
          

          This is however different from the documentation where name/value is passed, so marking this as confirmed.

          Radek Antoniuk added a comment - This actually works when you submit your job like this: curl -X POST --data-urlencode json= '{ "parameter" : [{ "name" : "TEST" , "issue" : "PROJ-3" } ] }' http: //localhost:9090/job/test/build This is however different from the documentation where name/value is passed, so marking this as confirmed.

          Code changed in jenkins
          User: Radosław Antoniuk
          Path:
          src/main/java/hudson/plugins/jira/JiraSite.java
          src/main/java/hudson/plugins/jira/Updater.java
          src/main/java/hudson/plugins/jira/listissuesparameter/JiraIssueParameterValue.java
          src/main/java/hudson/plugins/jira/versionparameter/JiraVersionParameterValue.java
          src/main/resources/hudson/plugins/jira/listissuesparameter/JiraIssueParameterDefinition/index.jelly
          http://jenkins-ci.org/commit/jira-plugin/0100428a5528e7aefd99a1800cedd66441547110
          Log:
          Change JIRA issue parameter to name/value to conform to standard and expose the value via API.
          JENKINS-12578 JENKINS-25828

          Compare: https://github.com/jenkinsci/jira-plugin/compare/d95df0fe5af4^...0100428a5528

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Radosław Antoniuk Path: src/main/java/hudson/plugins/jira/JiraSite.java src/main/java/hudson/plugins/jira/Updater.java src/main/java/hudson/plugins/jira/listissuesparameter/JiraIssueParameterValue.java src/main/java/hudson/plugins/jira/versionparameter/JiraVersionParameterValue.java src/main/resources/hudson/plugins/jira/listissuesparameter/JiraIssueParameterDefinition/index.jelly http://jenkins-ci.org/commit/jira-plugin/0100428a5528e7aefd99a1800cedd66441547110 Log: Change JIRA issue parameter to name/value to conform to standard and expose the value via API. JENKINS-12578 JENKINS-25828 Compare: https://github.com/jenkinsci/jira-plugin/compare/d95df0fe5af4 ^...0100428a5528

          Code changed in jenkins
          User: Radosław Antoniuk
          Path:
          src/main/java/hudson/plugins/jira/JiraSite.java
          src/main/java/hudson/plugins/jira/Updater.java
          src/main/java/hudson/plugins/jira/listissuesparameter/JiraIssueParameterValue.java
          src/main/java/hudson/plugins/jira/versionparameter/JiraVersionParameterValue.java
          src/main/resources/hudson/plugins/jira/listissuesparameter/JiraIssueParameterDefinition/index.jelly
          src/test/java/hudson/plugins/jira/UpdaterTest.java
          http://jenkins-ci.org/commit/jira-plugin/422af63443f627be79587f926fb7f2f1845e3170
          Log:
          Merge pull request #67 from jenkinsci/parameters_fix_JENKINS-25828_JENKINS-12578

          JENKINS-12578 JENKINS-25828

          Compare: https://github.com/jenkinsci/jira-plugin/compare/05b55a729eef...422af63443f6

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Radosław Antoniuk Path: src/main/java/hudson/plugins/jira/JiraSite.java src/main/java/hudson/plugins/jira/Updater.java src/main/java/hudson/plugins/jira/listissuesparameter/JiraIssueParameterValue.java src/main/java/hudson/plugins/jira/versionparameter/JiraVersionParameterValue.java src/main/resources/hudson/plugins/jira/listissuesparameter/JiraIssueParameterDefinition/index.jelly src/test/java/hudson/plugins/jira/UpdaterTest.java http://jenkins-ci.org/commit/jira-plugin/422af63443f627be79587f926fb7f2f1845e3170 Log: Merge pull request #67 from jenkinsci/parameters_fix_ JENKINS-25828 _ JENKINS-12578 JENKINS-12578 JENKINS-25828 Compare: https://github.com/jenkinsci/jira-plugin/compare/05b55a729eef...422af63443f6

            warden Radek Antoniuk
            rockaja sam rock
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: