Issue Summary

      Users lacking the 'Edit Issues' permission are not able to link an Epic to newly created or existing issues. However, despite an error message when performing this action, a new issue is still created and the workflow is left in a broken state for that issue.

      This issue was introduced in JSW 8.11.0 and is not occurring in 8.10.1.

      Steps to Reproduce

      1. Create two Software projects.
      2. Remove 'Edit Issues' permission in the Project A permission scheme.
      3. Create an Epic in 'Project A'.
      4. Create a new issue (or edit existing issue) in 'Project B' with the Epic Link assigned to the Epic created in step 3.

      Expected Results

      The issue is not created because the user does not have the appropriate permission. See JSWSERVER-13986 for a related suggestion.

      Jira Software considers linking issues to epics as editing the scope of work of an epic, which is why it uses the "Edit issue" permission to check if a user is able to link/unlink issues to an epic.

      Actual Results

      As of 8.11, the user gets an unclear error message that is shown in the screenshot and the impression the issue isn't submitted:

      We can't create this issue for you right now, it could be due to unsupported content you've entered into one or more of the issue fields. If this situation persists, contact your administrator as they'll be able to access more specific information in the log file.
      

      However:

      1. The issue is created without the Epic Link or required fields.
      2. The os_wfentry.state for the issue is set to 0 so no workflow transition button appears on the view issue screen.
      New Issue

      /secure/QuickCreateIssue.jspa [c.a.j.bc.issue.DefaultIssueService] Error creating issue:
      com.atlassian.jira.exception.CreateException: You do not have permission to edit issue PROJECTA-1.
      

      OS_WFENTRY:

      ID NAME INITIALIZED STATE
      10601 Software Simplified Workflow for Project SCRUM NULL 0
      Existing Issue

      /secure/QuickEditIssue.jspa [c.a.j.bc.issue.DefaultIssueService] Exception occurred editing issue: java.lang.RuntimeException: You do not have permission to edit issue PROJECTA-1.
      java.lang.RuntimeException: You do not have permission to edit issue PROJECTA-1.
      

      Workaround

      The workaround is to:

      1. Search for the new issue – either by direct URL or through the database.
      2. Add the required fields and Epic Link (under a user that has permission).
      3. Fix the workflow with the KB Workflow transition button missing from the issue view page in Jira server.

      Always back up your data before performing any modifications to the database. If possible, test any alter, insert, update, or delete SQL commands on a staging server first.

        1. ExistingIssue.png
          ExistingIssue.png
          11 kB
        2. NewIssue.png
          NewIssue.png
          22 kB

            [JSWSERVER-20770] Unable to link Epic without Edit Issue permissions

            Benjamin S made changes -
            Remote Link Original: This issue links to "PSR-609 (Bulldog)" [ 542707 ] New: This issue links to "PSR-609 (JIRA Server (Bulldog))" [ 542707 ]
            Benjamin S made changes -
            Remote Link Original: This issue links to "SONIC-1474 (Bulldog)" [ 541558 ] New: This issue links to "SONIC-1474 (JIRA Server (Bulldog))" [ 541558 ]
            Alex Stegani made changes -
            Link New: This issue duplicates JSWSERVER-20878 [ JSWSERVER-20878 ]

            Piotr Janik added a comment - - edited

            drauf Is there a feature request ticket somewhere for what 1ccd16a1d0e5 is trying to achieve? Linking a task to an epic really doesn't feel like editing the epic, perhaps there could be a switch for this behaviour?

            Piotr Janik added a comment - - edited drauf Is there a feature request ticket somewhere for what 1ccd16a1d0e5 is trying to achieve? Linking a task to an epic really doesn't feel like editing the epic, perhaps there could be a switch for this behaviour?
            Daniel Rauf made changes -
            Description Original: h3. Issue Summary

            Users lacking the 'Edit Issues' permission are not able to link an Epic to newly created or existing issues. However, despite an error message when performing this action, a new issue is still created and the workflow is left in a broken state for that issue.

            This issue was introduced in JSW *8.11.0* and is not occurring in *8.10.1*.
            h3. Steps to Reproduce
             # Create two Software projects.
             # Remove '*Edit Issues*' permission in the Project A permission scheme.
             # Create an Epic in '*Project A*'.
             # Create a new issue (or edit existing issue) in '*Project B*' with the Epic Link assigned to the Epic created in step 3.

            h3. Expected Results

            The issue is not created because the user does not have the appropriate permission. See JSWSERVER-13986 for related suggestion.
            h3. Actual Results

            As of 8.11, the user gets an unclear error message that is shown in the screenshot and the impression the issue isn't submitted:
            {code:java}
            We can't create this issue for you right now, it could be due to unsupported content you've entered into one or more of the issue fields. If this situation persists, contact your administrator as they'll be able to access more specific information in the log file.
            {code}

            However:
            # The issue is created without the Epic Link or required fields.
            # The {{os_wfentry.state}} for the issue is set to 0 so no workflow transition button appears on the view issue screen.

            h5. New Issue

            !NewIssue.png|width=602,height=74!
            {code:java}
            /secure/QuickCreateIssue.jspa [c.a.j.bc.issue.DefaultIssueService] Error creating issue:
            com.atlassian.jira.exception.CreateException: You do not have permission to edit issue PROJECTA-1.
            {code}
            {{OS_WFENTRY}}:
            ||ID||NAME||INITIALIZED||STATE||
            |10601|Software Simplified Workflow for Project SCRUM|NULL|0|
            h5. Existing Issue

            !ExistingIssue.png|width=595,height=41!
            {code:java}
            /secure/QuickEditIssue.jspa [c.a.j.bc.issue.DefaultIssueService] Exception occurred editing issue: java.lang.RuntimeException: You do not have permission to edit issue PROJECTA-1.
            java.lang.RuntimeException: You do not have permission to edit issue PROJECTA-1.
            {code}
            h3. Workaround

            The workaround is to:
             # Search for the new issue – either by direct URL or through the database.
             # Add the required fields and Epic Link (under a user that has permission).
             # Fix the workflow with the KB [Workflow transition button missing from the issue view page in Jira server.|https://confluence.atlassian.com/jirakb/workflow-transition-button-missing-from-the-issue-view-page-in-jira-server-800304645.html]

            {panel:bgColor=#fff8c9}
            (i) Always back up your data before performing any modifications to the database. If possible, test any alter, insert, update, or delete SQL commands on a staging server first.
            {panel}
            New: h3. Issue Summary

            Users lacking the 'Edit Issues' permission are not able to link an Epic to newly created or existing issues. However, despite an error message when performing this action, a new issue is still created and the workflow is left in a broken state for that issue.

            This issue was introduced in JSW *8.11.0* and is not occurring in {*}8.10.1{*}.
            h3. Steps to Reproduce
             # Create two Software projects.
             # Remove '{*}Edit Issues{*}' permission in the Project A permission scheme.
             # Create an Epic in '{*}Project A{*}'.
             # Create a new issue (or edit existing issue) in '{*}Project B{*}' with the Epic Link assigned to the Epic created in step 3.

            h3. Expected Results

            The issue is not created because the user does not have the appropriate permission. See JSWSERVER-13986 for a related suggestion.

            Jira Software considers linking issues to epics as _editing the scope of work of an epic,_ which is why it uses the "Edit issue" permission to check if a user is able to link/unlink issues to an epic.
            h3. Actual Results

            As of 8.11, the user gets an unclear error message that is shown in the screenshot and the impression the issue isn't submitted:
            {code:java}
            We can't create this issue for you right now, it could be due to unsupported content you've entered into one or more of the issue fields. If this situation persists, contact your administrator as they'll be able to access more specific information in the log file.
            {code}
            However:
             # The issue is created without the Epic Link or required fields.
             # The {{os_wfentry.state}} for the issue is set to 0 so no workflow transition button appears on the view issue screen.

            h5. New Issue

            !NewIssue.png|width=602,height=74!
            {code:java}
            /secure/QuickCreateIssue.jspa [c.a.j.bc.issue.DefaultIssueService] Error creating issue:
            com.atlassian.jira.exception.CreateException: You do not have permission to edit issue PROJECTA-1.
            {code}
            {{{}OS_WFENTRY{}}}:
            ||ID||NAME||INITIALIZED||STATE||
            |10601|Software Simplified Workflow for Project SCRUM|NULL|0|
            h5. Existing Issue

            !ExistingIssue.png|width=595,height=41!
            {code:java}
            /secure/QuickEditIssue.jspa [c.a.j.bc.issue.DefaultIssueService] Exception occurred editing issue: java.lang.RuntimeException: You do not have permission to edit issue PROJECTA-1.
            java.lang.RuntimeException: You do not have permission to edit issue PROJECTA-1.
            {code}
            h3. Workaround

            The workaround is to:
             # Search for the new issue – either by direct URL or through the database.
             # Add the required fields and Epic Link (under a user that has permission).
             # Fix the workflow with the KB [Workflow transition button missing from the issue view page in Jira server.|https://confluence.atlassian.com/jirakb/workflow-transition-button-missing-from-the-issue-view-page-in-jira-server-800304645.html]

            {panel:bgColor=#fff8c9}
            (i) Always back up your data before performing any modifications to the database. If possible, test any alter, insert, update, or delete SQL commands on a staging server first.
            {panel}
            Murakami [Atlassian Support] made changes -
            Remote Link New: This issue links to "Page (Atlassian Documentation)" [ 576722 ]

            Danny, I think that's what you want to see if the user doesn't have permission to edit issues in the project wherein the target Epic resides.  The key thing with this fix is that Jira no longer creates a bogus issue behind the scenes like it used to.  We are testing 8.13.7 as well and for us the problem is resolved.

            Deleted Account (Inactive) added a comment - Danny, I think that's what you want to see if the user doesn't have permission to edit issues in the project wherein the target Epic resides.  The key thing with this fix is that Jira no longer creates a bogus issue behind the scenes like it used to.  We are testing 8.13.7 as well and for us the problem is resolved.

            Danny Prill added a comment - - edited

            We still have this problem!

            We recently updated to 8.13.7 and our users still get the following prompt below the "Epic Link"-field:

             "You don't have permission to edit this epic, so you can't assign your issue to it."

            We tested the steps to reproduce and the message appears.

            Danny Prill added a comment - - edited We still have this problem! We recently updated to 8.13.7 and our users still get the following prompt below the "Epic Link"-field:   "You don't have permission to edit this epic, so you can't assign your issue to it." We tested the steps to reproduce and the message appears.
            Nathan Lopez made changes -
            Remote Link Original: This issue links to "Page (Confluence)" [ 543219 ]
            Daniel Rauf made changes -
            Fix Version/s New: 8.13.7 [ 94614 ]

              drauf Daniel Rauf
              43408485a508 Nathan Lopez
              Affected customers:
              11 This affects my team
              Watchers:
              28 Start watching this issue

                Created:
                Updated:
                Resolved: