Update multiple Jira issues with a single commit

Issue #636 open
metalseargolid
created an issue

At the moment, if we use an issue ID in a commit message (e.g. PR-10), a comment will be added with the log message for the issue in Jira.

We would like to see it possible to update multiple Jira issues with a single commit by specifying multiple issue IDs in the commit message. So for example, if a commit message contains the following string

"PR-10 PR-11"

That commit message will be applied to both the PR-10 and the PR-11 issues. At the moment, only the first Jira issue ID has a comment added to it when the commit message contains more then one issue ID.

Comments (12)

  1. Phil Porada

    Glad I found this, this would be really useful for my company as well. We have scenarios where a commit can potentially fix multiple issues. Right now the plugin only updates the first issue mentioned in the commit.

  2. Sebastian Sdorra repo owner

    The problem seems to be the following lines in the log:

    2014-11-26 12:31:14.184 [EventBus-1] INFO  sonia.scm.jira.SoapJiraHandler - add comment to issue ITMAINT-56
    2014-11-26 12:31:14.491 [EventBus-1] DEBUG sonia.scm.jira.JiraChangesetPreProcessor - changeset 9 of repository 6TOtRWkeg1 is already handled
    2014-11-26 12:31:14.495 [EventBus-1] DEBUG sonia.scm.jira.JiraChangesetPreProcessor - changeset 9 of repository 6TOtRWkeg1 is already handled
    

    As you can see the update handler thinks that the changeset with the id 9 is already handled, after the first update is done. But changeset are only marked after all matching issues are handled (JiraChangesetPreProcessor:99). I'm not able to reproduce this issue. @Phil Porada which version of scm-jira-plugin do you use?

  3. Log in to comment