Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-90033

Workflow pull request triggers always record anonymous users when performing a transition

      Issue Summary

      When using GitHub app or Bitbucket integration along with workflow triggers, the workflow transitions are shown as performed by Anonymous users

      Steps to Reproduce

      1. Connect your project with the GitHub for Jira app. 
      2. Configure your workflow triggers so that PullRequestCreated or PullRequestMerged transition your issue accordingly.
      3. Create or merge a pull request.

      Expected Results

      The user account who has performed the changes in GitHub is mapped correctly to a user on the issue history.

      Actual Results

      The issue history for the transition states that it was performed by an anonymous user.

      This is despite confirming that with a smart commit using:

      [Issue-Key]#comment TestComment 
      

      the comments are created with the correct user name, so it is able to identify the user from the commit operations but not for the workflow triggers.

      Workaround

      Currently there is no known workaround for this behavior.

            [JRACLOUD-90033] Workflow pull request triggers always record anonymous users when performing a transition

            Kate Durnell made changes -
            Component/s Original: Workflow - Development Triggers [ 46728 ]
            Component/s Original: DVCS Connector [ 46717 ]
            Component/s New: Workflow - Triggers [ 77935 ]
            Component/s New: Integration - Dvcs accounts [ 77936 ]
            Key Original: JSWCLOUD-20708 New: JRACLOUD-90033
            Project Original: Jira Cloud [ 18511 ] New: Jira Platform Cloud [ 18514 ]
            Varun made changes -
            Link New: This issue is related to JSWCLOUD-26252 [ JSWCLOUD-26252 ]
            Mike Howells made changes -
            Summary Original: Workflow pull request triggers record anonymous users when performing a transition New: Workflow pull request triggers always record anonymous users when performing a transition
            Karina made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Short Term Backlog [ 12074 ] New: Closed [ 6 ]

            Karina added a comment -

            The bug in Pullrequest transitions was fixed in February. 

            The behaviour for branch transitions is expected and documented in https://support.atlassian.com/jira-cloud-administration/docs/configure-workflow-triggers. The trigger will still be executed by anonymous users for Bitbucket and Github. Customers raising tickets because they don't want triggers to be executed with anonymous users would be a feature request, not a bug. 

            "How triggers relate to other workflow operations/constraints

            When a transition is triggered automatically, it ignores any conditions, validators or permissions configured on the transition.

            However, post functions are still executed. You need to be careful that if your post function requires a user, that your transition will not be executed by an anonymous user (see user mapping section above)."

            Karina added a comment - The bug in Pullrequest transitions was fixed in February.  The behaviour for branch transitions is expected and documented in  https://support.atlassian.com/jira-cloud-administration/docs/configure-workflow-triggers.  The trigger will still be executed by anonymous users for Bitbucket and Github. Customers raising tickets because they don't want triggers to be executed with anonymous users would be a feature request, not a bug.  "How triggers relate to other workflow operations/constraints When a transition is triggered automatically, it ignores any conditions, validators or permissions configured on the transition. However, post functions are still executed. You need to be careful that if your post function requires a user, that your transition will not be executed by an anonymous user (see  user mapping section  above)."
            Mike Howells made changes -
            Description Original: h3. Issue Summary

            When using GitHub app or Bitbucket integration along with workflow triggers, the workflow transitions are shown as performed by Anonymous users

            h3. Steps to Reproduce

            # Connect your project with the GitHub for Jira app. 
            # Configure your workflow triggers so that PullRequestCreated or PullRequestMerged transition your issue accordingly.
            # Create or merge a pull request.

            h3. Expected Results

            The user account who has performed the changes in the Git environment is mapped correctly to a user on the issue history.

            h3. Actual Results

            The issue history for the transition states that it was performed by an anonymous user.
             !Screenshot 2020-09-05 at 1.01.27 AM.png|thumbnail!

            This is despite confirming that with a smart commit using:
            {code:java}
            [Issue-Key]#comment TestComment 
            {code}
            the comments are created with the correct user name, so it is able to identify the user from the commit operations but not for the workflow triggers.

            h3. Workaround

            Currently there is no known workaround for this behavior.
            New: h3. Issue Summary

            When using GitHub app or Bitbucket integration along with workflow triggers, the workflow transitions are shown as performed by Anonymous users

            h3. Steps to Reproduce

            # Connect your project with the GitHub for Jira app. 
            # Configure your workflow triggers so that PullRequestCreated or PullRequestMerged transition your issue accordingly.
            # Create or merge a pull request.

            h3. Expected Results

            The user account who has performed the changes in GitHub is mapped correctly to a user on the issue history.

            h3. Actual Results

            The issue history for the transition states that it was performed by an anonymous user.
             !Screenshot 2020-09-05 at 1.01.27 AM.png|thumbnail!

            This is despite confirming that with a smart commit using:
            {code:java}
            [Issue-Key]#comment TestComment 
            {code}
            the comments are created with the correct user name, so it is able to identify the user from the commit operations but not for the workflow triggers.

            h3. Workaround

            Currently there is no known workaround for this behavior.
            Mike Howells made changes -
            Description Original: h3. Issue Summary

            When using GitHub app or Bitbucket integration along with workflow triggers, the workflow transitions are shown as performed by Anonymous users
            h3. Steps to Reproduce
             # Connect your project with the GitHub for Jira app. 
             # Configure your workflow triggers so that PullRequestCreated or PullRequestMerged transition your issue accordingly.

            h3. Expected Results

            The user account who has performed the changes in the Git environment is mapped correctly to a user on the issue history.

            h3. Actual Results

            The issue history for the transition states that it was performed by an anonymous user.
             !Screenshot 2020-09-05 at 1.01.27 AM.png|thumbnail!

            This is despite confirming that with a smart commit using:
            {code:java}
            [Issue-Key]#comment TestComment 
            {code}
            the comments are created with the correct user name, so it is able to identify the user from the commit operations but not for the workflow triggers.

            h3. Workaround

            Currently there is no known workaround for this behavior.
            New: h3. Issue Summary

            When using GitHub app or Bitbucket integration along with workflow triggers, the workflow transitions are shown as performed by Anonymous users

            h3. Steps to Reproduce

            # Connect your project with the GitHub for Jira app. 
            # Configure your workflow triggers so that PullRequestCreated or PullRequestMerged transition your issue accordingly.
            # Create or merge a pull request.

            h3. Expected Results

            The user account who has performed the changes in the Git environment is mapped correctly to a user on the issue history.

            h3. Actual Results

            The issue history for the transition states that it was performed by an anonymous user.
             !Screenshot 2020-09-05 at 1.01.27 AM.png|thumbnail!

            This is despite confirming that with a smart commit using:
            {code:java}
            [Issue-Key]#comment TestComment 
            {code}
            the comments are created with the correct user name, so it is able to identify the user from the commit operations but not for the workflow triggers.

            h3. Workaround

            Currently there is no known workaround for this behavior.
            Mike Howells made changes -
            Summary Original: Workflow Triggers record anonymous users when performing a transition New: Workflow pull request triggers record anonymous users when performing a transition
            Mike Howells made changes -
            Description Original: h3. Issue Summary

            When using GitHub app or Bitbucket integration along with workflow triggers, the workflow transitions are shown as performed by Anonymous users
            h3. Steps to Reproduce
             # Connect your Project with the GitHub app. 
             # Configure your Workflow triggers such as that for PullRequestCreated or PullRequestMerged, which transitions your issue accordingly.

            h3. Expected Results

            The user account who has performed the changes in the Git environment is mapped correctly to a user on the issue history.

            h3. Actual Results

            The issue history for the transition states that it was performed by an anonymous user.
             !Screenshot 2020-09-05 at 1.01.27 AM.png|thumbnail!

            This is despite confirming that with a smart commit using:
            {code:java}
            [Issue-Key]#comment TestComment 
            {code}
            the comments are created with the correct user name, so it is able to identify the user from the commit operations but not for the workflow triggers.

            h3. Workaround

            Currently there is no known workaround for this behavior.
            New: h3. Issue Summary

            When using GitHub app or Bitbucket integration along with workflow triggers, the workflow transitions are shown as performed by Anonymous users
            h3. Steps to Reproduce
             # Connect your project with the GitHub for Jira app. 
             # Configure your workflow triggers so that PullRequestCreated or PullRequestMerged transition your issue accordingly.

            h3. Expected Results

            The user account who has performed the changes in the Git environment is mapped correctly to a user on the issue history.

            h3. Actual Results

            The issue history for the transition states that it was performed by an anonymous user.
             !Screenshot 2020-09-05 at 1.01.27 AM.png|thumbnail!

            This is despite confirming that with a smart commit using:
            {code:java}
            [Issue-Key]#comment TestComment 
            {code}
            the comments are created with the correct user name, so it is able to identify the user from the commit operations but not for the workflow triggers.

            h3. Workaround

            Currently there is no known workaround for this behavior.
            Mike Howells made changes -
            Description Original: h3. Issue Summary

            When using GitHub app or Bitbucket integration along with workflow triggers, the workflow transitions are shown as performed by Anonymous users
            h3. Steps to Reproduce
             # Connect your Project with the GitHub app. 
             # Configure your Workflow triggers such as that for PullRequestCreated or PullRequestMerged, which transitions your issue accordingly.

            h3. Expected Results

            The user account who has performed the changes in the Git environment is mapped here on the Issue history
            h3. Actual Results

            The issue history for the transitions, mention that this was performed by an anonymous user.
             !Screenshot 2020-09-05 at 1.01.27 AM.png|thumbnail!

            This is despite confirming that the smart commit operation using 
            {code:java}
            [Issue-Key]#comment TestComment 
            {code}
            , here the comments are created with the correct user name – that is it is able to identify the user from the commit operations but not for the workflow triggers. 
            h3. Workaround

            Currently there is no known workaround for this behavior. 
            New: h3. Issue Summary

            When using GitHub app or Bitbucket integration along with workflow triggers, the workflow transitions are shown as performed by Anonymous users
            h3. Steps to Reproduce
             # Connect your Project with the GitHub app. 
             # Configure your Workflow triggers such as that for PullRequestCreated or PullRequestMerged, which transitions your issue accordingly.

            h3. Expected Results

            The user account who has performed the changes in the Git environment is mapped correctly to a user on the issue history.

            h3. Actual Results

            The issue history for the transition states that it was performed by an anonymous user.
             !Screenshot 2020-09-05 at 1.01.27 AM.png|thumbnail!

            This is despite confirming that with a smart commit using:
            {code:java}
            [Issue-Key]#comment TestComment 
            {code}
            the comments are created with the correct user name, so it is able to identify the user from the commit operations but not for the workflow triggers.

            h3. Workaround

            Currently there is no known workaround for this behavior.

              kmoraesdasilva Karina
              prawat@atlassian.com Prashant R (Inactive)
              Affected customers:
              23 This affects my team
              Watchers:
              27 Start watching this issue

                Created:
                Updated:
                Resolved: