Hello! I am trying to get a custom list of work items via API. In particular, I’m looking to make use of the “Advanced search work items” endpoint detailed in the docs here: Advanced search work items | Plane
One of the optional parameters is a “filters” JSON. I’m looking for any kind of documentation anywhere on the shape of the data that JSON expects. In particular, I want to see how the format of “filter by cycle” and “filter by states” is passed in.
My use case is as follows:
Given a specific cycle, I want to parse the data for that cycle and export a rich-text-copyable list that includes the data in the following format: [PROJ-1234] Some Deployed Feature Name Here
- [PROJ-1234] => Work item shortname ID (not the long alphanumeric unique key) including a hyperlink to that work item’s URL
- Some Deployed feature Name Here => Work item title
I thought I’d achieve this by doing an advanced issue search that includes the valid states (various categories of Completed), as well as the cycle and project to look within.
The other possible approach is brute force and inelegant. If Advanced Search will not work for this, I think the approach would have to be:
- GET cycles for a project, select one by ID
- GET work items for a cycle by cycle_id, store all the work item IDs
- GET work item details one by one for each of those IDs
- Filter by desired status based on the output in #3, concatenate the shortname for the export URL and line item
Obviously the first approach sounds simpler, can anybody let me know if this is possible via API? I know I can set up a VIEW with filters on the Plane UI, but I want an API solution that can make rich-text-doc exportable summaries weekly without the manual work of compiling them.