API to fetch default reviewer doesn’t work with UUID's

XMLWordPrintable

    • 1
    • Severity 3 - Minor
    • 3

      Issue Summary

      The following API https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/default-reviewers/%7Btarget_username%7D endpoint does not work when UUID is passed to the field "target_username"

      Steps to Reproduce

      Step 1: try to fetch default reviewer details using
      "/2.0/repositories/ {workspace}/{repo_slug}/default-reviewers/{target_username}"
      Step 2: Provide UUID of the target user instead of username

      Expected Results

      Default reviewer details should be shown

      Actual Results

      • Error:*
        {
        "type": "error",
        "error":
        
        { "message": "Resource not found" }
        }
        

      Workaround

      The existing API works fine for username. While using the same API with UUID of the target_user, use a filter for UUID

      2.0/repositories/ \{workspace}/\{repo_slug}/default-reviewers?q=uuid="{Target_user_UUID}"
      

              Assignee:
              Ihor Posmashnyi (Inactive)
              Reporter:
              Lavanya K
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: