1.0.166 • Published 4 years ago
forge-atlas-fetch v1.0.166
Forge Atlas Fetch - Documentation
Integrate with any Atlassian Product API using simple and typed javascript / typescript commands.
Getting started
The client lets you interact with the following Atlassian products:
- Confluence
- Jira
And interact either:
- as the logged-in User
- as the App itself
Installation
Install via:
- npm
npm install --save forge-atlas-fetch
- yarn
yarn add forge-atlas-fetch
Update your existing Forge app config
- install
webpack
yarn add --dev ts-loader webpack webpack-cli
- add the following
webpack.config.js
at the root of your Forge app:
const path = require('path');
module.exports = {
entry: './src/index.tsx',
target: 'node',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/
}
]
},
resolve: {
extensions: [ '.tsx', '.ts', '.js' ]
},
output: {
filename: 'index.js',
library: '',
libraryTarget: 'commonjs',
path: path.resolve(__dirname, 'dist')
}
};
- change your
package.json
build step to:
"build": "webpack",
Usage in your Forge app
Forge Confluence client
Sample query
import { confluence } from 'forge-atlas-fetch';
import { Content } from 'fetch-confluence';
const fetchContent = async (contentId): Promise<Content> => {
return await confluence(api).asApp().content().getContentById({ id: contentId }).results;
};
Full documentation available here
Forge Jira client
Sample query
import { jira } from 'forge-atlas-fetch';
import { IssueBean } from 'fetch-jira';
const fetchIssue = async (issueKey): Promise<IssueBean> => {
return await jira().asApp().issues().getIssue({ issueIdOrKey: issueKey });
};
Full documentation available here
1.0.166
4 years ago
1.0.163
4 years ago
1.0.162
4 years ago
1.0.159
4 years ago
1.0.156
4 years ago
1.0.152
4 years ago
1.0.148
5 years ago
1.0.147
5 years ago
1.0.146
5 years ago
1.0.145
5 years ago
1.0.144
5 years ago
1.0.142
5 years ago
1.0.139
5 years ago
1.0.136
5 years ago
1.0.135
5 years ago
1.0.130
5 years ago
1.0.124
5 years ago
1.0.123
5 years ago
1.0.121
5 years ago
1.0.117
5 years ago
1.0.114
5 years ago
1.0.110
5 years ago
1.0.109
5 years ago
1.0.105
5 years ago
1.0.95
5 years ago
1.0.94
5 years ago
1.0.91
5 years ago
1.0.90
5 years ago
1.0.87
5 years ago
1.0.86
5 years ago
1.0.79
5 years ago
1.0.76
5 years ago
1.0.74
5 years ago
1.0.72
5 years ago
1.0.53
5 years ago
1.0.52
5 years ago
1.0.47
5 years ago