Versions Compared

Key

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

...

Instructions

Follow the steps below:

  1. Export all Tempo Accounts from your Data Center instance using the csv export functionality. Be advised that archived accounts are NOT exported.

  2. Import all Tempo Accounts into your Cloud instance using the csv import functionality. Be advised that the account status is not mapped in the import function and all accounts will default to the “OPEN” status.

  3. Export all Jira issue data from your Data Center instance to a csv file. The key fields you need to have included in the export are the Jira issue key and the Tempo Account custom field value.

  4. Extract the Tempo Accounts that you have imported in step 2 from your Cloud instance. This is necessary to get the new associated ID. You need to do the following call to the Tempo REST API.
    curl --request GET 'https://api.tempo.io/core/3/accounts' -H 'Authorization: Bearer {TempoAPIAccessToken}'
    This will return a JSON with all Tempo accounts. You will need to parse the JSON file in order to work with it in Excel. E.g. https://json-csv.com/ or similar.

  5. Match the Account name from Data Center (retrieved from step 3) to the new Tempo Account ID (retrieved from step 4). The Accounts can be matched by Account Name or Account Key. As a final result you should have a new column in your exported list from step 3 that represents the Tempo Account ID in your destination Jira Cloud instance.

  6. Now you need to get the custom field ID of the Tempo Account field in your Jira Cloud destination instance. You can achieve this with calling a Jira REST endpoint:
    curl --request GET 'https://{JiraCloudUrl}/rest/api/3/field' -H'Authorization: Basic {AtlassianAPIAccessToken}’
    Within the response of that call you will find the information of the Tempo Account and the Tempo Team field:

    Code Block
    "id": "customfield_10201",
    "key": "io.tempo.jira__account",
    "name": "Account",

    Look for the key "io.tempo.jira__account". You will need the corresponding id (customfield_xxxxx).

  7. Now you will need to update the Jira Account with the help of your final list of step 5. You will need to do an API call of each single line:

    Code Block
    curl --request PUT 'https:///{JiraCloudUrl}/rest/api/3/issue/{IssueKey}' \
    -header 'Content-Type: application/json' \
    -header 'Authorization: Basic {AtlassianAPIAccessToken}' \
    -data-raw '{"fields": {"customfield_xxxxx": {TempoAccountID}}

    You will need to replace the parameter in “{}” with the correct values from your instance. You can copy the commands in a script file that you can run from any command line tool similar to how it’s described in this article

...