Uploaded image for project: 'Automation for Jira Server'
  1. Automation for Jira Server
  2. JIRAAUTOSERVER-82

User condition not properly checked when a project role has more than 50 default members

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 7.2.1
    • 7.1.7
    • Conditions
    • None
    • Severity 3 - Minor

      Issue Description

      If the default members of a Project Role exceed 50 users, the condition that checks if a user is part (or is not part) of this project role will throw the following message in the audit log, even if in reality the project role does not have more than 50 users:

      The role has 50 or more users, only the first 50 users will be used
      

      This message is misleading, since in reality the project role might have less than 50 users, and also the user condition might not work as expected, and check the actual users who are in the project role (instead of the users configured in the default members of this role).

      Steps to reproduce

      1. Create a new Jira group, and add more than 50 users to it
      2. Create a new project role in ⚙ > System > Project roles
      3. Click on Manage Default Members next to this role
      4. Add the Jira group as a default member of this role
      5. Go to a Project Configuration page, then go to "Users and roles"
      6. Only add 1 user to the project role created earlier
      7. Create a new automation rule in this project, including a User Condition configured as follows:
        • User -> "User who triggered the event"
        • Check to perform -> "is not in role"
        • Criteria -> add there the project role
      8. Trigger the automation rule
      9. Check the audit logs

      Expected results

      The User Condition portion of the Audit log should only say:

      The following issues passed:
      <ISSUE_KEY>
      

      Actual results

      The User Condition portion of the Audit Log says:

      The following issues passed:
      <ISSUE_KEY>
      The role has 50 or more users, only the first 50 users will be used
      

      Workaround

      1. Go to the page ⚙ > System > Project roles
      2. Click on Manage Default Members next to the project role used in the User Condition of the automation rule
      3. Remove the default members from this project role

              mostaszewski@atlassian.com Mateusz Ostaszewski (Inactive)
              jrey Julien Rey (Inactive)
              Votes:
              14 Vote for this issue
              Watchers:
              23 Start watching this issue

                Created:
                Updated:
                Resolved: