[WEB-3838]feat:sub work items sorting (#6967)

* refactor: sub-work items components, hooks and types

* feat: added orderby and display properties toggle for sub work items

* fix: build errors

* chore: removed issue type from filters

* chore: added null check

* fix: added null check

---------

Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
This commit is contained in:
Vamsi Krishna 2025-04-29 15:23:10 +05:30 committed by GitHub
parent 55340f9f48
commit 14dc6a56bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 843 additions and 995 deletions

View file

@ -267,9 +267,15 @@ export class IssueService extends APIService {
});
}
async subIssues(workspaceSlug: string, projectId: string, issueId: string): Promise<TIssueSubIssues> {
async subIssues(
workspaceSlug: string,
projectId: string,
issueId: string,
queries?: Partial<Record<TIssueParams, string | boolean>>
): Promise<TIssueSubIssues> {
return this.get(
`/api/workspaces/${workspaceSlug}/projects/${projectId}/${this.serviceType}/${issueId}/${this.serviceType === EIssueServiceType.EPICS ? "issues" : "sub-issues"}/`
`/api/workspaces/${workspaceSlug}/projects/${projectId}/${this.serviceType}/${issueId}/${this.serviceType === EIssueServiceType.EPICS ? "issues" : "sub-issues"}/`,
{ params: queries }
)
.then((response) => response?.data)
.catch((error) => {