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

API for fetching project permissions is not giving accurate results

    XMLWordPrintable

Details

    Description

      Issue -

      If we use my permissions API like this rest/api/3/mypermissions?permissions=EDIT_ALL_WORKLOGS&issuekey=ABC-10, the results are not accurate.

      Eg. My user doesn't have Edit Worklog permissions and I tested this

      Call - https://dexter1234.atlassian.net/rest/api/3/mypermissions?permissions=EDIT_ALL_WORKLOGS&issuekey=ABC-10

      Output :

       

      {"permissions":{"EDIT_ALL_WORKLOGS":
      {"id":"41","key":"EDIT_ALL_WORKLOGS","name":"Edit All Worklogs","type":"PROJECT","description":"Ability to edit all worklogs made on issues.","havePermission":*true*}
      }}
      

      We also noticed that the API calls picks up information from cache since sometimes it gives accurate results in incognito mode so the behaviour is not consistent.

       

      Attachments

        Issue Links

          Activity

            People

              asinha@atlassian.com Abhinaya Sinha
              mgodhwani@atlassian.com Madhuri Godhwani
              Votes:
              4 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: