Setting Up Jira REST API Token

To interact with JetTime and Jira APIs programmatically, you need to use a Jira REST API token. This token ensures secure access and should be used in all API requests. Follow the steps below to generate a token and learn how to authenticate your API calls.

Generating a Jira REST API Token

To generate your API token, follow these steps:

  1. Log in to your Atlassian account and go to https://id.atlassian.com/manage-profile/security/api-tokens.
  2. Click on the Create Classic API token button.
  3. Enter a descriptive label for the token (e.g., “JetTime Integration”), set the expiration date, and click Create.
  4. Your API token will be generated. Make sure to copy it now, as you won’t be able to view it again.

Using the API Token for Authentication

To authenticate API requests, use the HTTP Basic Authentication method. For this, Base64 encode your Atlassian account email as the username and your API token as the password, and include it in the Authorization: Basic <encoded_credentials> header for all requests.

Important Notes

  • Keep your API token secure and never share it with others.
  • You can revoke and regenerate API tokens at any time through your Atlassian account.
  • Make sure your token is tied to an account with the appropriate permissions to perform API actions.

For more details, check the official Atlassian documentation here: Manage API tokens for your Atlassian account.