Uploaded image for project: 'Coin'
  1. Coin
  2. COIN-864

Allow filtering of work items for a task

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: P2: Important P2: Important
    • None
    • None
    • WebServer
    • None

      The endpoint "TaskWorkitems" should allow filtering in the request with the following fields:

      {
          id: str  # REQUIRED (already exists in API)
          task_action: str/list[str] [Build, Test, Provision]
          state: str/list[str] [Running, Done, Cancelled, Failed]
          target_os: str/list[str]
          target_os_version: str/list[str]
      }

      These parameters should be used to filter results to return only work items matching all supplied filters. All filters should be optional.

       

      Example request:

       

      GET /taskWorkItems
      
      {
         id: "1652939184"
         task_action: ["Build", "Test"]
         state: ["Done", "Failed"]
         target_os: "Linux"
         target_os_version: "INTEGRITY"
      }

       

      This request would return work items which are Build or Test items, of which only the ones which are in a state of Done or Failed, of which have the target OS of Linux, specifically for the INTEGRITY target os version.

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            akpietik Aku Pietikäinen
            daniel.smith Daniel Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes