mirror of
https://github.com/alamion/obsidian-jira-sync.git
synced 2026-07-22 05:43:04 +00:00
- JQL pull tasks (with preview) - Timekeep settings menu full rework - bunch of small fixes with data transformation and pointers - now caching Jira key -> file path to increase performance - new pointer - `jira-sync-inline-*` - readme slight rework
58 lines
1.3 KiB
TypeScript
58 lines
1.3 KiB
TypeScript
import {FieldMapping} from "../default/obsidianJiraFieldsMapping";
|
|
|
|
export interface JiraSettings {
|
|
collapsedSections: Record<string, boolean>;
|
|
|
|
authMethod: "bearer" | "basic" | "session";
|
|
apiToken: string;
|
|
username: string;
|
|
email: string;
|
|
password: string;
|
|
jiraUrl: string;
|
|
|
|
issuesFolder: string;
|
|
sessionCookieName: string;
|
|
templatePath: string;
|
|
fieldMappings: Record<string, FieldMapping>;
|
|
fieldMappingsStrings: Record<string, { toJira: string; fromJira: string }>;
|
|
enableFieldValidation: boolean;
|
|
|
|
statisticsTimeType: string;
|
|
maxItemsToShow: number;
|
|
customDateRange: { start: string; end: string };
|
|
|
|
// Cache for issue key to file path mapping
|
|
issueKeyToFilePathCache: Record<string, string>;
|
|
}
|
|
|
|
export const DEFAULT_SETTINGS: JiraSettings = {
|
|
collapsedSections: {
|
|
connection: true,
|
|
general: true,
|
|
fieldMappings: false,
|
|
rawIssueViewer: false,
|
|
testFieldMappings: false,
|
|
statistics: false,
|
|
},
|
|
authMethod: "bearer",
|
|
apiToken: "",
|
|
username: "",
|
|
email: "",
|
|
password: "",
|
|
jiraUrl: "",
|
|
|
|
issuesFolder: "jira-issues",
|
|
sessionCookieName: "JSESSIONID",
|
|
templatePath: "",
|
|
fieldMappings: {},
|
|
fieldMappingsStrings: {},
|
|
enableFieldValidation: true,
|
|
|
|
statisticsTimeType: "weeks",
|
|
maxItemsToShow: 10,
|
|
customDateRange: { start: "", end: "" },
|
|
|
|
// Initialize empty cache
|
|
issueKeyToFilePathCache: {}
|
|
};
|
|
|