@atlaskit/link-datasource 2.3.5 → 2.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/LICENSE.md +6 -8
- package/dist/cjs/hooks/useDatasourceTableState.js +3 -3
- package/dist/cjs/hooks/useValidateAqlText.js +3 -3
- package/dist/cjs/ui/assets-modal/modal/index.js +21 -9
- package/dist/cjs/ui/common/modal/popup-select/index.js +4 -4
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +3 -3
- package/dist/cjs/ui/issue-like-table/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/render-type/date-time/index.js +4 -4
- package/dist/cjs/ui/issue-like-table/styled.js +7 -7
- package/dist/es2019/hooks/useDatasourceTableState.js +3 -3
- package/dist/es2019/hooks/useValidateAqlText.js +3 -3
- package/dist/es2019/ui/assets-modal/modal/index.js +21 -7
- package/dist/es2019/ui/common/modal/popup-select/index.js +4 -4
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +3 -3
- package/dist/es2019/ui/issue-like-table/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/render-type/date-time/index.js +4 -4
- package/dist/es2019/ui/issue-like-table/styled.js +7 -7
- package/dist/esm/hooks/useDatasourceTableState.js +3 -3
- package/dist/esm/hooks/useValidateAqlText.js +3 -3
- package/dist/esm/ui/assets-modal/modal/index.js +21 -9
- package/dist/esm/ui/common/modal/popup-select/index.js +4 -4
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +3 -3
- package/dist/esm/ui/issue-like-table/index.js +1 -1
- package/dist/esm/ui/issue-like-table/render-type/date-time/index.js +4 -4
- package/dist/esm/ui/issue-like-table/styled.js +7 -7
- package/dist/types/contexts/datasource-experience-id/index.d.ts +1 -1
- package/dist/types/contexts/user-interactions/index.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/services/useBasicFilterAGG.d.ts +1 -1
- package/dist/types/ui/assets-modal/search-container/loading-state.d.ts +1 -1
- package/dist/types/ui/assets-modal/types.d.ts +1 -0
- package/dist/types/ui/common/error-state/no-instances.d.ts +1 -1
- package/dist/types/ui/common/modal/cancel-button/index.d.ts +1 -1
- package/dist/types/ui/common/modal/content-container/index.d.ts +1 -1
- package/dist/types/ui/common/modal/display-view-dropdown/display-view-drop-down.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/footer.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/menu-list/errorMessage.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/menu-list/loadingMessage.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/menu-list/selectMessage.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/boolean/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/icon/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/link/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/number/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/status/index.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/basic-filters/utils/transformers.d.ts +2 -2
- package/dist/types-ts4.5/contexts/datasource-experience-id/index.d.ts +1 -1
- package/dist/types-ts4.5/contexts/user-interactions/index.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/services/useBasicFilterAGG.d.ts +1 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/loading-state.d.ts +1 -1
- package/dist/types-ts4.5/ui/assets-modal/types.d.ts +1 -0
- package/dist/types-ts4.5/ui/common/error-state/no-instances.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/cancel-button/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/content-container/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/display-view-dropdown/display-view-drop-down.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/footer.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/errorMessage.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/loadingMessage.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/selectMessage.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/boolean/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/icon/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/link/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/number/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/status/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/utils/transformers.d.ts +2 -2
- package/examples-helpers/buildAssetsIssuesTable.tsx +44 -44
- package/examples-helpers/buildConfluenceSearchTable.tsx +49 -51
- package/examples-helpers/buildIssueLikeTable.tsx +82 -92
- package/examples-helpers/buildJiraIssuesTable.tsx +50 -50
- package/examples-helpers/hoverableContainer.tsx +12 -14
- package/examples-helpers/mockJqlSmartLinkData.ts +64 -66
- package/examples-helpers/mockSmartLinkData.ts +154 -154
- package/examples-helpers/smartLinkCustomClient.ts +32 -32
- package/examples-helpers/useAssetsTableProps.tsx +46 -46
- package/examples-helpers/useCommonTableProps.tsx +23 -25
- package/package.json +17 -12
- package/report.api.md +94 -106
|
@@ -20,110 +20,100 @@ import { useCommonTableProps } from './useCommonTableProps';
|
|
|
20
20
|
mockDatasourceFetchRequests();
|
|
21
21
|
|
|
22
22
|
interface Props {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
isReadonly?: boolean;
|
|
24
|
+
canResizeColumns?: boolean;
|
|
25
|
+
canControlWrapping?: boolean;
|
|
26
|
+
skipIntl?: boolean;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
30
30
|
const TableViewWrapper = styled.div({
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
display: 'flex',
|
|
32
|
+
flexDirection: 'column',
|
|
33
|
+
overflow: 'scroll',
|
|
34
|
+
width: '100%',
|
|
35
|
+
height: '100%',
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
const ExampleBody = ({
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
jql: 'some-jql',
|
|
47
|
-
}),
|
|
48
|
-
[],
|
|
49
|
-
);
|
|
38
|
+
const ExampleBody = ({ isReadonly, canResizeColumns = true, canControlWrapping = true }: Props) => {
|
|
39
|
+
const parameters = useMemo<JiraIssueDatasourceParameters>(
|
|
40
|
+
() => ({
|
|
41
|
+
cloudId: 'some-cloud-id',
|
|
42
|
+
jql: 'some-jql',
|
|
43
|
+
}),
|
|
44
|
+
[],
|
|
45
|
+
);
|
|
50
46
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
47
|
+
const {
|
|
48
|
+
status,
|
|
49
|
+
onNextPage,
|
|
50
|
+
responseItems,
|
|
51
|
+
hasNextPage,
|
|
52
|
+
defaultVisibleColumnKeys,
|
|
53
|
+
columns,
|
|
54
|
+
loadDatasourceDetails,
|
|
55
|
+
} = useDatasourceTableState({
|
|
56
|
+
datasourceId: 'some-datasource-id',
|
|
57
|
+
parameters,
|
|
58
|
+
});
|
|
63
59
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
60
|
+
const {
|
|
61
|
+
visibleColumnKeys,
|
|
62
|
+
onVisibleColumnKeysChange,
|
|
63
|
+
columnCustomSizes,
|
|
64
|
+
onColumnResize,
|
|
65
|
+
wrappedColumnKeys,
|
|
66
|
+
onWrappedColumnChange,
|
|
67
|
+
} = useCommonTableProps();
|
|
72
68
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
useEffect(() => {
|
|
70
|
+
if (visibleColumnKeys.length === 0 && defaultVisibleColumnKeys.length > 0) {
|
|
71
|
+
onVisibleColumnKeysChange(defaultVisibleColumnKeys);
|
|
72
|
+
}
|
|
73
|
+
}, [visibleColumnKeys, defaultVisibleColumnKeys, onVisibleColumnKeysChange]);
|
|
78
74
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
/>
|
|
103
|
-
) : (
|
|
104
|
-
<span>Loading ...</span>
|
|
105
|
-
)}
|
|
106
|
-
</TableViewWrapper>
|
|
107
|
-
);
|
|
75
|
+
return (
|
|
76
|
+
<TableViewWrapper>
|
|
77
|
+
{visibleColumnKeys.length > 0 && columns.length > 0 ? (
|
|
78
|
+
<IssueLikeDataTableView
|
|
79
|
+
testId="link-datasource"
|
|
80
|
+
items={responseItems}
|
|
81
|
+
onNextPage={onNextPage}
|
|
82
|
+
onLoadDatasourceDetails={loadDatasourceDetails}
|
|
83
|
+
hasNextPage={hasNextPage}
|
|
84
|
+
status={status}
|
|
85
|
+
columns={columns}
|
|
86
|
+
visibleColumnKeys={visibleColumnKeys}
|
|
87
|
+
onVisibleColumnKeysChange={isReadonly ? undefined : onVisibleColumnKeysChange}
|
|
88
|
+
onColumnResize={isReadonly || !canResizeColumns ? undefined : onColumnResize}
|
|
89
|
+
columnCustomSizes={columnCustomSizes}
|
|
90
|
+
onWrappedColumnChange={canControlWrapping ? onWrappedColumnChange : undefined}
|
|
91
|
+
wrappedColumnKeys={wrappedColumnKeys}
|
|
92
|
+
/>
|
|
93
|
+
) : (
|
|
94
|
+
<span>Loading ...</span>
|
|
95
|
+
)}
|
|
96
|
+
</TableViewWrapper>
|
|
97
|
+
);
|
|
108
98
|
};
|
|
109
99
|
|
|
110
100
|
export const ExampleIssueLikeTable = ({
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
101
|
+
isReadonly,
|
|
102
|
+
canResizeColumns,
|
|
103
|
+
canControlWrapping,
|
|
104
|
+
skipIntl,
|
|
115
105
|
}: Props) => {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
106
|
+
return (
|
|
107
|
+
<DatasourceExperienceIdProvider>
|
|
108
|
+
<IntlMessagesProvider loaderFn={fetchMessagesForLocale}>
|
|
109
|
+
<SmartCardProvider client={new SmartLinkClient()}>
|
|
110
|
+
<ExampleBody
|
|
111
|
+
isReadonly={isReadonly}
|
|
112
|
+
canResizeColumns={canResizeColumns}
|
|
113
|
+
canControlWrapping={canControlWrapping}
|
|
114
|
+
/>
|
|
115
|
+
</SmartCardProvider>
|
|
116
|
+
</IntlMessagesProvider>
|
|
117
|
+
</DatasourceExperienceIdProvider>
|
|
118
|
+
);
|
|
129
119
|
};
|
|
@@ -14,65 +14,65 @@ import SmartLinkClient from './smartLinkCustomClient';
|
|
|
14
14
|
import { useCommonTableProps } from './useCommonTableProps';
|
|
15
15
|
|
|
16
16
|
interface JiraIssuesTableViewProps {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
parameters?: DatasourceParameters;
|
|
18
|
+
mockDatasourceFetchRequest?: boolean;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
const JiraIssuesTableView = ({ parameters }: JiraIssuesTableViewProps) => {
|
|
22
|
-
|
|
22
|
+
const cloudId = parameters?.cloudId || 'some-cloud-id';
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
const datasourceParameters = useMemo<JiraIssueDatasourceParameters>(
|
|
25
|
+
() => ({
|
|
26
|
+
cloudId,
|
|
27
|
+
jql: 'some-jql',
|
|
28
|
+
}),
|
|
29
|
+
[cloudId],
|
|
30
|
+
);
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
32
|
+
const {
|
|
33
|
+
visibleColumnKeys,
|
|
34
|
+
onVisibleColumnKeysChange,
|
|
35
|
+
columnCustomSizes,
|
|
36
|
+
onColumnResize,
|
|
37
|
+
wrappedColumnKeys,
|
|
38
|
+
onWrappedColumnChange,
|
|
39
|
+
} = useCommonTableProps({
|
|
40
|
+
defaultColumnCustomSizes: {
|
|
41
|
+
people: 100,
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
45
|
+
return (
|
|
46
|
+
<DatasourceTableView
|
|
47
|
+
datasourceId={'some-datasource-id'}
|
|
48
|
+
parameters={datasourceParameters}
|
|
49
|
+
visibleColumnKeys={visibleColumnKeys}
|
|
50
|
+
onVisibleColumnKeysChange={onVisibleColumnKeysChange}
|
|
51
|
+
columnCustomSizes={columnCustomSizes}
|
|
52
|
+
onColumnResize={onColumnResize}
|
|
53
|
+
onWrappedColumnChange={onWrappedColumnChange}
|
|
54
|
+
wrappedColumnKeys={wrappedColumnKeys}
|
|
55
|
+
/>
|
|
56
|
+
);
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
export const ExampleJiraIssuesTableView = ({
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
parameters,
|
|
61
|
+
mockDatasourceFetchRequest = true,
|
|
62
62
|
}: JiraIssuesTableViewProps) => {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
useEffect(() => {
|
|
64
|
+
if (mockDatasourceFetchRequest) {
|
|
65
|
+
mockDatasourceFetchRequests();
|
|
66
|
+
}
|
|
67
|
+
}, [mockDatasourceFetchRequest]);
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
return (
|
|
70
|
+
<DatasourceExperienceIdProvider>
|
|
71
|
+
<IntlMessagesProvider loaderFn={fetchMessagesForLocale}>
|
|
72
|
+
<SmartCardProvider client={new SmartLinkClient()}>
|
|
73
|
+
<JiraIssuesTableView parameters={parameters} />
|
|
74
|
+
</SmartCardProvider>
|
|
75
|
+
</IntlMessagesProvider>
|
|
76
|
+
</DatasourceExperienceIdProvider>
|
|
77
|
+
);
|
|
78
78
|
};
|
|
@@ -6,21 +6,19 @@ import { jsx } from '@emotion/react';
|
|
|
6
6
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
7
7
|
|
|
8
8
|
const containerStyles = xcss({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
height: '100%',
|
|
10
|
+
backgroundColor: 'elevation.surface.overlay',
|
|
11
|
+
padding: 'space.400',
|
|
12
|
+
':hover': {
|
|
13
|
+
backgroundColor: 'elevation.surface.overlay.hovered',
|
|
14
|
+
},
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
// To simulate Jira description's hover background wrapper
|
|
18
|
-
export const HoverableContainer = ({
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
</Box>
|
|
25
|
-
);
|
|
18
|
+
export const HoverableContainer = ({ children }: React.PropsWithChildren<{}>) => {
|
|
19
|
+
return (
|
|
20
|
+
<Box testId="examples-hoverable-container" xcss={containerStyles}>
|
|
21
|
+
{children}
|
|
22
|
+
</Box>
|
|
23
|
+
);
|
|
26
24
|
};
|
|
@@ -3,70 +3,68 @@ import { type JsonLd } from 'json-ld-types';
|
|
|
3
3
|
import * as Image from './images.json';
|
|
4
4
|
|
|
5
5
|
export const mockJqlSmartLinkData = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
],
|
|
71
|
-
} as JsonLd.Response,
|
|
6
|
+
unauthorized: {
|
|
7
|
+
meta: {
|
|
8
|
+
access: 'unauthorized',
|
|
9
|
+
visibility: 'restricted',
|
|
10
|
+
auth: [{}],
|
|
11
|
+
},
|
|
12
|
+
data: {
|
|
13
|
+
'@context': {
|
|
14
|
+
'@vocab': 'https://www.w3.org/ns/activitystreams#',
|
|
15
|
+
atlassian: 'https://schema.atlassian.com/ns/vocabulary#',
|
|
16
|
+
schema: 'http://schema.org/',
|
|
17
|
+
},
|
|
18
|
+
'@type': 'Object',
|
|
19
|
+
generator: {
|
|
20
|
+
'@type': 'Application',
|
|
21
|
+
name: 'Asana',
|
|
22
|
+
icon: {
|
|
23
|
+
'@type': 'Image',
|
|
24
|
+
url: Image.asana,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
url: 'https://some.url',
|
|
28
|
+
},
|
|
29
|
+
} as JsonLd.Response,
|
|
30
|
+
resolved: {
|
|
31
|
+
data: {
|
|
32
|
+
'@context': {
|
|
33
|
+
'@vocab': 'https://www.w3.org/ns/activitystreams#',
|
|
34
|
+
atlassian: 'https://schema.atlassian.com/ns/vocabulary#',
|
|
35
|
+
schema: 'http://schema.org/',
|
|
36
|
+
},
|
|
37
|
+
'@type': ['Document', 'Object'],
|
|
38
|
+
generator: {
|
|
39
|
+
'@id': 'https://www.atlassian.com/#Jira',
|
|
40
|
+
'@type': 'Application',
|
|
41
|
+
name: 'Jira',
|
|
42
|
+
},
|
|
43
|
+
name: `55 Issues`,
|
|
44
|
+
summary: `JQL Query: '(text ~ "test*" OR summary ~ "test*") order by created DESC'`,
|
|
45
|
+
url: `https://product-fabric.atlassian.net/issues/?jql=${encodeURI(
|
|
46
|
+
'(text ~ "test*" OR summary ~ "test*") order by created DESC',
|
|
47
|
+
)}`,
|
|
48
|
+
},
|
|
49
|
+
meta: {
|
|
50
|
+
access: 'granted',
|
|
51
|
+
auth: [],
|
|
52
|
+
definitionId: 'jira-object-provider',
|
|
53
|
+
category: 'object',
|
|
54
|
+
product: 'jira',
|
|
55
|
+
resourceType: 'jql',
|
|
56
|
+
tenantId: `someCloudId-for-hello`,
|
|
57
|
+
visibility: 'restricted',
|
|
58
|
+
// ...(subproduct && { subproduct: subproduct }),
|
|
59
|
+
},
|
|
60
|
+
datasources: [
|
|
61
|
+
{
|
|
62
|
+
key: 'datasource-jira-issues',
|
|
63
|
+
parameters: {
|
|
64
|
+
cloudId: `someCloudId-for-hello`,
|
|
65
|
+
jql: decodeURIComponent('(text ~ "test*" OR summary ~ "test*") order by created DESC'),
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
} as JsonLd.Response,
|
|
72
70
|
};
|