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

"Update a Field" does not work with environment variables

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I attempted to update a wiki-markup enabled field in Jira with:

      Last Jenkins Build - [$JOB_NAME $BUILD_DISPLAY_NAME|$BUILD_URL]
      

      But, it placed its value plain text, rather than turning the variables into their actual values... It seems to work just fine for comments, just not "Update a Field"

        Attachments

          Activity

          Hide
          lantian Ivan Vorontsov added a comment -

          Also reproducible for "Add a label" field

          Show
          lantian Ivan Vorontsov added a comment - Also reproducible for "Add a label" field
          Hide
          ndesousa Noel De Sousa added a comment -

          As Nikk indicated, when using the "Manually specifying a single issue" with a Jenkins variable in the JIRA Issue Key. It does not work and we used Jenkins parameter variable (Like Choice, List, or Jira Issue Parameter). We tried all three of these parameter and used the variable called JIRA ($JIRA). Although, the comment area will except Jenkins variables.

          Show
          ndesousa Noel De Sousa added a comment - As Nikk indicated, when using the "Manually specifying a single issue" with a Jenkins variable in the JIRA Issue Key. It does not work and we used Jenkins parameter variable (Like Choice, List, or Jira Issue Parameter). We tried all three of these parameter and used the variable called JIRA ($JIRA). Although, the comment area will except Jenkins variables.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Dan Alvizu
          Path:
          src/main/java/org/jenkinsci/plugins/jiraext/view/AddFixVersion.java
          src/main/java/org/jenkinsci/plugins/jiraext/view/AddLabel.java
          src/main/java/org/jenkinsci/plugins/jiraext/view/SingleTicketStrategy.java
          src/main/java/org/jenkinsci/plugins/jiraext/view/UpdateField.java
          src/test/java/org/jenkinsci/plugins/jiraext/view/AddFixVersionTest.java
          src/test/java/org/jenkinsci/plugins/jiraext/view/AddLabelTest.java
          src/test/java/org/jenkinsci/plugins/jiraext/view/SingleTicketStrategyTest.java
          src/test/java/org/jenkinsci/plugins/jiraext/view/UpdateFieldTest.java
          http://jenkins-ci.org/commit/jira-ext-plugin/d4995e8b61a34c740f04048b47e5ca63c16a4435
          Log:
          JENKINS-33054 support environment variables in fix version, label, field, and single ticket strategy

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Dan Alvizu Path: src/main/java/org/jenkinsci/plugins/jiraext/view/AddFixVersion.java src/main/java/org/jenkinsci/plugins/jiraext/view/AddLabel.java src/main/java/org/jenkinsci/plugins/jiraext/view/SingleTicketStrategy.java src/main/java/org/jenkinsci/plugins/jiraext/view/UpdateField.java src/test/java/org/jenkinsci/plugins/jiraext/view/AddFixVersionTest.java src/test/java/org/jenkinsci/plugins/jiraext/view/AddLabelTest.java src/test/java/org/jenkinsci/plugins/jiraext/view/SingleTicketStrategyTest.java src/test/java/org/jenkinsci/plugins/jiraext/view/UpdateFieldTest.java http://jenkins-ci.org/commit/jira-ext-plugin/d4995e8b61a34c740f04048b47e5ca63c16a4435 Log: JENKINS-33054 support environment variables in fix version, label, field, and single ticket strategy
          Hide
          dalvizu Dan Alvizu added a comment -

          Added support for environment variables in field, label, fix version, and single ticket strategy

          https://github.com/jenkinsci/jira-ext-plugin/commit/d4995e8b61a34c740f04048b47e5ca63c16a4435

          Fixed in jira-ext 0.5 release - should be available in about 4 hours

          Show
          dalvizu Dan Alvizu added a comment - Added support for environment variables in field, label, fix version, and single ticket strategy https://github.com/jenkinsci/jira-ext-plugin/commit/d4995e8b61a34c740f04048b47e5ca63c16a4435 Fixed in jira-ext 0.5 release - should be available in about 4 hours

            People

            • Assignee:
              dalvizu Dan Alvizu
              Reporter:
              billapepper Nikk Folts
            • Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: