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

jira-ext plugin is not adding comment as expected

    Details

    • Similar Issues:

      Description

      I am trying to update JIRA from ChangeSet after each Build.

      The console log is saying it is updating it ..

      Updating JIRA tickets
      ChangeLogSet class: class hudson.plugins.git.GitChangeSetList
      Operation: Add a comment
      Finish updating JIRA tickets

      I dont see the changes in comment section. It is good to say in the log which JIRA is being updated.

      Please find attached screenshot.

        Attachments

        1. Changes.png
          Changes.png
          14 kB
        2. Configuration.png
          Configuration.png
          38 kB
        3. ConsoleLog.png
          ConsoleLog.png
          19 kB
        4. GlobalConfiguration.png
          GlobalConfiguration.png
          78 kB

          Activity

          Hide
          bshahadat Basma Shahadat added a comment -

          Thanks. Got it. It is working for single issue update.

          If i choose the option mentioned somewhere in commit message, it does not update.

          Here is my changes:

          Changes
          BUILDREL-3205: Testing JIRA ext plugins (detail)

          The Console log says:
          Updating JIRA tickets
          ChangeLogSet class: class hudson.plugins.git.GitChangeSetList
          Operation: Add a comment
          Finish updating JIRA tickets

          In JIRA ticket, i dont see any update. It works if i mention the same JIRA ticket# explicitly in single issue update.

          Show
          bshahadat Basma Shahadat added a comment - Thanks. Got it. It is working for single issue update. If i choose the option mentioned somewhere in commit message, it does not update. Here is my changes: Changes BUILDREL-3205: Testing JIRA ext plugins (detail) The Console log says: Updating JIRA tickets ChangeLogSet class: class hudson.plugins.git.GitChangeSetList Operation: Add a comment Finish updating JIRA tickets In JIRA ticket, i dont see any update. It works if i mention the same JIRA ticket# explicitly in single issue update.
          Hide
          dalvizu Dan Alvizu added a comment -

          You need to tell jira-ext that your tickets begin with `BUILDREL-` – you will need to set this in your JIRA ticket pattern in global configuration. Please read the configuration and the help there. It defaults to `FOO-,BAR`

          https://github.com/jenkinsci/jira-ext-plugin/blob/master/src/main/resources/org/jenkinsci/plugins/jiraext/Config/global.jelly#L20

          Show
          dalvizu Dan Alvizu added a comment - You need to tell jira-ext that your tickets begin with `BUILDREL-` – you will need to set this in your JIRA ticket pattern in global configuration. Please read the configuration and the help there. It defaults to `FOO-,BAR` https://github.com/jenkinsci/jira-ext-plugin/blob/master/src/main/resources/org/jenkinsci/plugins/jiraext/Config/global.jelly#L20
          Hide
          bshahadat Basma Shahadat added a comment -

          Thanks. It is working now. We are testing field update now.

          Show
          bshahadat Basma Shahadat added a comment - Thanks. It is working now. We are testing field update now.
          Hide
          bshahadat Basma Shahadat added a comment -

          It is working smoothly. Can I pass any value generated by build in that field update? How?

          Show
          bshahadat Basma Shahadat added a comment - It is working smoothly. Can I pass any value generated by build in that field update? How?
          Hide
          dalvizu Dan Alvizu added a comment -

          This is an open source project, please be respectful of that. You are asking unrelated questions in a bug report about basic functionality.

          Please read this:

          http://www.catb.org/~esr/faqs/smart-questions.html

          > When you ask your question, display the fact that you have done these things first; this will help establish that you're not being a lazy sponge and wasting people's time.

          Show
          dalvizu Dan Alvizu added a comment - This is an open source project, please be respectful of that. You are asking unrelated questions in a bug report about basic functionality. Please read this: http://www.catb.org/~esr/faqs/smart-questions.html > When you ask your question, display the fact that you have done these things first; this will help establish that you're not being a lazy sponge and wasting people's time.

            People

            • Assignee:
              dalvizu Dan Alvizu
              Reporter:
              bshahadat Basma Shahadat
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: