Media Picker
Media Picker is Atlassian's toolkit for getting your customer's files to the Media API.
Documentation
You can read documentation on this page.
Setup
Media Picker consists of two sub-projects that both need to be set up.
First, install the dependencies:
npm install
(cd popup && npm install)
Second, build both projects (whenever you made changes):
npm run build-local
(cd popup && npm run build)
Now spin up the development server:
npm start
And finally open the example page from a local python server:
python -m SimpleHTTPServer 8080
open http://localhost:8080/lib/example/popup.html
In order to proceed, you will need a user token. You can specify either SSO or Session token.
To get them, please log into https://id.stg.internal.atlassian.com/manage page and from that page:
- to get SSO token, copy the contents of the cookie named "__ATL_TOKEN_STG".
- to get Session token, copy the contents of the cookie named "cloud.session.token.stg".
Paste the user SSO token that you obtained into the input field and click the button to launch the popup.
You're ready to go!
Builds & Continuous Integration
The build agents runs the following task:
BROWSERSTACK_USERNAME=X BROWSERSTACK_ACCESS_KEY=Y npm run ci-all
You can retrieve the required credentials from our shared 1Password Vault.