2023-10-18 07:02:02 +00:00
|
|
|
import { TIssueOrderByOptions } from "types";
|
2023-06-23 11:50:05 +00:00
|
|
|
|
2023-10-18 07:02:02 +00:00
|
|
|
export const SPREADSHEET_PROPERTY_DETAILS: {
|
|
|
|
[key: string]: {
|
|
|
|
title: string;
|
|
|
|
ascendingOrderKey: TIssueOrderByOptions;
|
|
|
|
ascendingOrderTitle: string;
|
|
|
|
descendingOrderKey: TIssueOrderByOptions;
|
|
|
|
descendingOrderTitle: string;
|
|
|
|
};
|
|
|
|
} = {
|
|
|
|
assignee: {
|
|
|
|
title: "Assignees",
|
|
|
|
ascendingOrderKey: "assignees__first_name",
|
|
|
|
ascendingOrderTitle: "A",
|
|
|
|
descendingOrderKey: "-assignees__first_name",
|
|
|
|
descendingOrderTitle: "Z",
|
2023-06-23 11:50:05 +00:00
|
|
|
},
|
2023-10-18 07:02:02 +00:00
|
|
|
created_on: {
|
|
|
|
title: "Created on",
|
|
|
|
ascendingOrderKey: "-created_at",
|
|
|
|
ascendingOrderTitle: "New",
|
|
|
|
descendingOrderKey: "created_at",
|
|
|
|
descendingOrderTitle: "Old",
|
2023-06-23 11:50:05 +00:00
|
|
|
},
|
2023-10-18 07:02:02 +00:00
|
|
|
due_date: {
|
|
|
|
title: "Due date",
|
|
|
|
ascendingOrderKey: "-target_date",
|
|
|
|
ascendingOrderTitle: "New",
|
|
|
|
descendingOrderKey: "target_date",
|
|
|
|
descendingOrderTitle: "Old",
|
2023-06-23 11:50:05 +00:00
|
|
|
},
|
2023-10-18 07:02:02 +00:00
|
|
|
estimate: {
|
|
|
|
title: "Estimate",
|
|
|
|
ascendingOrderKey: "estimate_point",
|
|
|
|
ascendingOrderTitle: "Low",
|
|
|
|
descendingOrderKey: "-estimate_point",
|
|
|
|
descendingOrderTitle: "High",
|
2023-06-23 11:50:05 +00:00
|
|
|
},
|
2023-10-18 07:02:02 +00:00
|
|
|
labels: {
|
|
|
|
title: "Labels",
|
|
|
|
ascendingOrderKey: "labels__name",
|
|
|
|
ascendingOrderTitle: "A",
|
|
|
|
descendingOrderKey: "-labels__name",
|
|
|
|
descendingOrderTitle: "Z",
|
2023-06-23 11:50:05 +00:00
|
|
|
},
|
2023-10-18 07:02:02 +00:00
|
|
|
priority: {
|
|
|
|
title: "Priority",
|
|
|
|
ascendingOrderKey: "priority",
|
|
|
|
ascendingOrderTitle: "None",
|
|
|
|
descendingOrderKey: "-priority",
|
|
|
|
descendingOrderTitle: "Urgent",
|
2023-08-11 13:44:54 +00:00
|
|
|
},
|
2023-10-18 07:02:02 +00:00
|
|
|
start_date: {
|
|
|
|
title: "Start date",
|
|
|
|
ascendingOrderKey: "-start_date",
|
|
|
|
ascendingOrderTitle: "New",
|
|
|
|
descendingOrderKey: "start_date",
|
|
|
|
descendingOrderTitle: "Old",
|
2023-06-23 11:50:05 +00:00
|
|
|
},
|
2023-10-18 07:02:02 +00:00
|
|
|
state: {
|
|
|
|
title: "State",
|
|
|
|
ascendingOrderKey: "state__name",
|
|
|
|
ascendingOrderTitle: "A",
|
|
|
|
descendingOrderKey: "-state__name",
|
|
|
|
descendingOrderTitle: "Z",
|
2023-06-23 11:50:05 +00:00
|
|
|
},
|
2023-10-18 07:02:02 +00:00
|
|
|
updated_on: {
|
|
|
|
title: "Updated on",
|
|
|
|
ascendingOrderKey: "-updated_at",
|
|
|
|
ascendingOrderTitle: "New",
|
|
|
|
descendingOrderKey: "updated_at",
|
|
|
|
descendingOrderTitle: "Old",
|
2023-07-07 08:41:07 +00:00
|
|
|
},
|
2023-11-03 13:45:09 +00:00
|
|
|
link: {
|
|
|
|
title: "Link",
|
|
|
|
ascendingOrderKey: "-link_count",
|
|
|
|
ascendingOrderTitle: "Most",
|
|
|
|
descendingOrderKey: "link_count",
|
|
|
|
descendingOrderTitle: "Least",
|
|
|
|
},
|
|
|
|
attachment_count: {
|
|
|
|
title: "Attachment",
|
|
|
|
ascendingOrderKey: "-attachment_count",
|
|
|
|
ascendingOrderTitle: "Most",
|
|
|
|
descendingOrderKey: "attachment_count",
|
|
|
|
descendingOrderTitle: "Least",
|
|
|
|
},
|
|
|
|
sub_issue_count: {
|
|
|
|
title: "Sub-issue",
|
|
|
|
ascendingOrderKey: "-sub_issues_count",
|
|
|
|
ascendingOrderTitle: "Most",
|
|
|
|
descendingOrderKey: "sub_issues_count",
|
|
|
|
descendingOrderTitle: "Least",
|
|
|
|
},
|
2023-10-18 07:02:02 +00:00
|
|
|
};
|