Skip to content

Add `workItem.archived` field to GraphQL API

Mario Celi requested to merge 425500-add-archived-to-work-item into master

What does this MR do and why?

Add workItem.archived field to GraphQL API

New field gets its return value from the parent project. For work items that belong directly to a group, this field will always return false

How to set up and validate locally

  1. Run the following query on graphiql
    {
       workItem(id: "gid://gitlab/WorkItem/<global_id_of_issue_or_work_item>") {
         id
         archived
       }
     }
  2. Archived should return true for work items that belong to archived projects. It will return false for work items that belong to projects that are not archived or for any work item that belongs directly to a group. Details on how to create group level work items in !132303 (merged)

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 #425500 (closed)

Edited by Mario Celi

Merge request reports

Loading