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

As an Admin I want the ability to share the visibility of a dashboard or filter with Groups and Roles that I am not a member of via API

    • 1
    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Issue Summary

      Since this feature was introduced via UI (reference JRACLOUD-15900), it would be best to have it working the same via API. Currently, in order to add sharing or edit permissions to a group, the user sending the request needs to be the member of the group.

      Steps to Reproduce

      1. Try to update the editPermissions and sharePermissions  with https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-dashboards/#api-rest-api-2-dashboard-id-put and https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-filters/#api-rest-api-2-filter-id-put to add a group to it.
      2. If you're not a member of the group, there will be an error returned saying 
        "errors": 
        {        
            "shares": "You do not have permission to share with Group: 'test group'.",        
            "shares_delegated": "The user 'XYZ' does not have permission to share with Group: 'test group'."    
        } 
      1.  

      Expected Results

      It would be best to use the same logic as in the UI because making such changes there does not require being a group member as explained in https://jira.atlassian.com/browse/JRACLOUD-15900 

      Actual Results

      In order to make the updates explained above, you need to become a member of the group.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

          Form Name

            [JRACLOUD-93526] As an Admin I want the ability to share the visibility of a dashboard or filter with Groups and Roles that I am not a member of via API

            this is a crucial step to accomplish a few migration requirements, wonder if this can be feasible via REST API as is via UI

            Tiago Miguel Sousa Santos added a comment - this is a crucial step to accomplish a few migration requirements, wonder if this can be feasible via REST API as is via UI

              Unassigned Unassigned
              4d79ff4a1a91 Pawel Przeworowski
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: