mirror of
https://github.com/documize/community.git
synced 2025-08-07 14:35:28 +02:00
Fetching Jira issues
This commit is contained in:
parent
7878a244d3
commit
0f9602e3a0
8 changed files with 196 additions and 334 deletions
|
@ -47,6 +47,8 @@ export default Service.extend({
|
|||
getOrgSetting(orgId, key) {
|
||||
return this.get('ajax').request(`organization/${orgId}/setting?key=${key}`, {
|
||||
method: 'GET'
|
||||
}).then((response) => {
|
||||
return JSON.parse(response);
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -48,6 +48,20 @@ export default BaseService.extend({
|
|||
});
|
||||
},
|
||||
|
||||
// Requests data from the specified section handler, passing the method and document ID
|
||||
// and POST payload.
|
||||
fetchText(page, method, data) {
|
||||
let documentId = page.get('documentId');
|
||||
let section = page.get('contentType');
|
||||
let url = `sections?documentID=${documentId}§ion=${section}&method=${method}`;
|
||||
|
||||
return this.get('ajax').post(url, {
|
||||
data: JSON.stringify(data),
|
||||
contentType: "application/json",
|
||||
dataType: "html"
|
||||
});
|
||||
},
|
||||
|
||||
// Did any dynamic sections change? Fetch and send up for rendering?
|
||||
refresh(documentId) {
|
||||
let url = `sections/refresh?documentID=${documentId}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue