forked from MrRefactoring/jira.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathissueNavigatorSettings.ts
76 lines (71 loc) · 3.32 KB
/
issueNavigatorSettings.ts
1
2
3
4
5
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
72
73
74
75
76
import * as Models from './models';
import { Callback } from '../callback';
import { Client } from '../clients';
import { RequestConfig } from '../requestConfig';
export class IssueNavigatorSettings {
constructor(private client: Client) {}
/**
* Returns the default issue navigator columns.
*
* **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#permissions) required:**
* _Administer Jira_ [global permission](https://confluence.atlassian.com/x/x4dKLg).
*/
async getIssueNavigatorDefaultColumns<T = Models.ColumnItem[]>(callback: Callback<T>): Promise<void>;
/**
* Returns the default issue navigator columns.
*
* **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#permissions) required:**
* _Administer Jira_ [global permission](https://confluence.atlassian.com/x/x4dKLg).
*/
async getIssueNavigatorDefaultColumns<T = Models.ColumnItem[]>(callback?: never): Promise<T>;
async getIssueNavigatorDefaultColumns<T = Models.ColumnItem[]>(callback?: Callback<T>): Promise<void | T> {
const config: RequestConfig = {
url: '/rest/api/3/settings/columns',
method: 'GET',
};
return this.client.sendRequest(config, callback);
}
/**
* Sets the default issue navigator columns.
*
* The `columns` parameter accepts a navigable field value and is expressed as HTML form data. To specify multiple
* columns, pass multiple `columns` parameters. For example, in curl:
*
* `curl -X PUT -d columns=summary -d columns=description
* https://your-domain.atlassian.net/rest/api/3/settings/columns`
*
* If no column details are sent, then all default columns are removed.
*
* A navigable field is one that can be used as a column on the issue navigator. Find details of navigable issue
* columns using [Get fields](#api-rest-api-3-field-get).
*
* **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#permissions) required:**
* _Administer Jira_ [global permission](https://confluence.atlassian.com/x/x4dKLg).
*/
async setIssueNavigatorDefaultColumns<T = unknown>(callback: Callback<T>): Promise<void>;
/**
* Sets the default issue navigator columns.
*
* The `columns` parameter accepts a navigable field value and is expressed as HTML form data. To specify multiple
* columns, pass multiple `columns` parameters. For example, in curl:
*
* `curl -X PUT -d columns=summary -d columns=description
* https://your-domain.atlassian.net/rest/api/3/settings/columns`
*
* If no column details are sent, then all default columns are removed.
*
* A navigable field is one that can be used as a column on the issue navigator. Find details of navigable issue
* columns using [Get fields](#api-rest-api-3-field-get).
*
* **[Permissions](https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#permissions) required:**
* _Administer Jira_ [global permission](https://confluence.atlassian.com/x/x4dKLg).
*/
async setIssueNavigatorDefaultColumns<T = unknown>(callback?: never): Promise<T>;
async setIssueNavigatorDefaultColumns<T = unknown>(callback?: Callback<T>): Promise<void | T> {
const config: RequestConfig = {
url: '/rest/api/3/settings/columns',
method: 'PUT',
};
return this.client.sendRequest(config, callback);
}
}