Component default assignee not respected when component is set by post function

XMLWordPrintable

    • 6.03

      Summary

      When creating an issue with the assignee field set to Automatic the expected behavior is like described at Defining a Component:

      Note that you can set a Default Assignee for a component. This will override the project's default assignee, for issues in that component.

      The above behavior is not respected when the component field is set from a post function, even when this post function is the first on the create issue transition.

      If this is an expected behavior it should be documented, if not should be fixed.

      Steps to Reproduce

      1. Create a Single Choice Select List (e.g. CustomComponent) with the following option:
        • A
      2. Create two users:
        • componentlead
        • projectlead
      3. Create a project with the following component:
        name lead default assignee
        A componentlead Component Lead
      4. Add the user 'projectlead' as the Project Lead of this project.
      5. Add a Copy Value from Other Field post-function from the JIRA Suite Utilities Plugin to the Create Issue transition for this project.
        • Source: CustomComponent
        • Target: Component/s
      6. Create an issue and set "CustomComponent" to "A".

      Expected Results

      JIRA issue is created with:

      • CustomComponent = 'A';
      • Component/s = 'A';
      • Assignee = 'componentlead'

      Actual Results

      JIRA issue is created with:

      • CustomComponent = 'A';
      • Component/s = 'A';
      • Assignee = 'projectlead'

      Workaround

      Do not use post functions to set the Component/s field.

              Assignee:
              Unassigned
              Reporter:
              Daniel Santos (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: