Skip to content

WI note action - assign/unassign to commentator

Deepika Guliani requested to merge 391995-assign-to-commenting-user into master

What does this MR do and why?

This closes a part of Work Item note actions , i.e Assign/unassign from the commenting user Also introduces(resolves in graphql api) a new user permission setWorkItemMetadata as a part of user permission to check if the user has permission to set work item meta data

Screenshots or screen recordings

Changes in the backend for the userPermission to check set_work_item_metadata

Sample graphql query

query workItemByIid($fullPath: ID!, $iid: String) {
 workspace: project(fullPath: $fullPath) {
   id
   workItems(iid: $iid) {
     nodes {
       ...WorkItem
       __typename
     }
     __typename
   }
   __typename
 }
}

fragment WorkItem on WorkItem {
 id
 iid
 workItemType {
   id
   name
   iconName
   __typename
 }
 userPermissions {
   deleteWorkItem
   updateWorkItem
   adminWorkItem
   setWorkItemMetadata
   __typename
 }

 __typename
}

Screen_Recording_2023-03-17_at_1.24.54_PM

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Visit any task or page https://gdk.test:3443/bethel/gitlab-smoke-tests/-/work_items/31?iid_path=true
  2. See that you have a work item note action to assign/unassign from commenting user if you have the priveliges

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #391995 (closed)

Edited by Deepika Guliani

Merge request reports

Loading