Cannot delete user using the Jira API if issues are assigned, have comments or are reported by the users

XMLWordPrintable

    • 95
    • 71

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      Summary

      Cannot delete a user using the Jira API if issues are assigned, reported, or have comments added by the users

      How to Replicate

      1. Assign issues to the user, have tickets created/reported by the user, or have tickets where the user added comments.
      2. Try to delete the user using the Jira delete API(v2/v3)

      Expected Result

      The user should be deleted successfully

      Actual Result

      {"errorMessages":["Cannot delete user 'XXXXXXXX' because 170 issues were reported by this person.","Cannot delete user 'XXXXXXXX' because 3 issues are currently assigned to this person.","Cannot delete user 'XXXXXXXX' because they have made 23 comments."],"errors":{}}%   
      

      Cannot delete user 'xxxxx' because x issues are currently assigned to this person.
      Cannot delete user 'xxxxx' because they have made x comments.

            Assignee:
            Unassigned
            Reporter:
            Mohamed Faiz (Inactive)
            Votes:
            99 Vote for this issue
            Watchers:
            110 Start watching this issue

              Created:
              Updated: