Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you use JetBrains or VS Code, you must install the IDE extensions so Capacity Insights can understand where you spend your time.

...

Expand
titleJetBrains

When you save a file in JetBrains, commit, or checkout, the extension posts an event to the Tempo API that contains the current branch name, timestamp, and a commit message (if available).

Before You Begin

  • Install IntelliJ version 2020.3 or later.

  • This plugin requires Tempo Timesheets on Jira Cloud.

Setting Up the Time Tracking Plugin

Install the Tempo Time Tracking plugin from the JetBrains Plugin Marketplace. Once you've installed the Tempo Time Tracking plugin, you must use an API token to authenticate Tempo in JetBrains.

  1. Select Apps in the Tempo sidebar.

  2. In the JetBrains Plugin tile, click Install. You are redirected to the JetBrains Plugin Marketplace to download the plugin.

  3. Click Get, select the plugin version, and then click Download.

  4. Follow the onscreen directions to install the Tempo Time Tracking plugin in JetBrains.

  5. After you've installed the Tempo plugin, restart your IDE.

    JetBrains install.jpgImage Removed
  6. A Tempo: token missing notification appears to remind you to set your Tempo API token.

    jetbrains needs a Tempo API token.jpgImage Removed
  7. In your Jira instance, navigate to Tempo > Settings > API Integration, and click New Token. This token can be either for full access or custom access.

    To create a custom access token, the token must have the Produce activities scope at a minimum. Click Confirm to create the token.

    Refer to Using REST API integrations.

    Get API token for JetBrains.jpgImage Removed

     

  8. Copy the token and open JetBrains. Click Configure in the prompt and paste the token.

    JetBrains_add_token.jpgImage Removed

     

  9. Click Test to ensure the API token is set up correctly, and then restart JetBrains.

  10. When prompted, authorize the plugin to access your Atlassian account.
    A new browser window opens so you can complete the authorization process.

    jetbrains-authorization.pngImage Added
    1. Select which Jira instance you’d like.

    2. When you click Accept, you can return to the IDEA. A notification displays that you are authorized to use Tempo.

Now when you open a workspace within a git repository, the Tempo extension gives you the option to either Track, Ignore or Postpone all activity within the git repository. Repositories that have been tracked send time record suggestions to My Work in Tempo.

If Postponed is selected, you receive a reminder the next time you open a project for this repository. You can then manually configure it in Preferences > Other Settings >Tempo.

Expand
titleVS Code

When you save a file in VS Code or commit/checkout in git, the extension will post an event to the Tempo API containing the current branch name, timestamp, and a commit message (if there's a commit). A status indicator at the bottom bar in VSCode shows you how much time you have spent on various development tasks. 

Setting Up the Time Tracking Extension

  1. Make sure you have VS Code version 1.46 or higher. Download the extension from the marketplace or the marketplace or install from the Extensions View in VS Code.

  2. Reload VS Code after the installation.

  3. A notification appears asking you to authenticate the extension with Tempo. Click Authorize now.

  4. Click Open to go to the go to the Atlassian authorization page. Click the Authorize for drop-down menu to open the list of sites (instances) you can authenticate with VS Code.

  5. Select the site you want to authorize. Click Accept and then open VS Code to complete the authorization and you're all set to go. (If you have multiple active instances that can be matched with your token, you may be prompted to do this twice.)

  6. When you open a workspace within a git repository, the extension will give you the option to either Track or Ignore all activity within the git repository.