Ironmile

Documentation: Worklog Sync for Harvest

Worklog Sync for Harvest copies your Harvest time entries into Jira Cloud as worklogs, so nobody types hours twice. You can also start a Harvest timer or add a past entry from a Jira issue. The app runs on Atlassian (Forge). It has no servers of its own and talks to one outside host, Harvest’s API.

Sync goes one way, from Harvest to Jira. Worklogs you create in Jira are not sent to Harvest.

What you need

Install

  1. Sign in to Jira as a site administrator.
  2. Go to Apps, then Explore more apps, and search for Worklog Sync for Harvest.
  3. Select Get app, then start the free trial.
  4. Read the permissions on the consent screen and accept.

The app asks for five permissions (scopes).

Scope Why
read:jira-work Reads issues, projects and worklogs to match entries and avoid duplicates.
write:jira-work Creates, updates and deletes the worklogs the app created.
read:jira-user Reads a user’s name and time zone.
storage:app Keeps tokens, project maps and the sync log in Forge storage.
report:personal-data Once a week, asks Atlassian which stored accounts were closed, and erases their data from the app.

The consent screen also lists one outside host, api.harvestapp.com. Nothing is sent anywhere else.

Connect your Harvest account

Every person whose time should sync does this once.

  1. In Harvest, open Harvest ID, then Developers, then Create new personal access token. Name it “Jira” and copy the token. Harvest explains this in its authentication guide.
  2. Copy your Account ID from the same Developers page. It is a number, not your email.
  3. In Jira, open Apps, then My Harvest connection.
  4. Paste the token into Personal access token and the number into Harvest Account ID.
  5. Select Test. A green message says Connected as followed by your Harvest name and email.
  6. Select Save.

After you save, the page shows who you are connected as, the masked token (only the last four characters), your time zone and the time of your last sync. The full token is never shown again.

The first sync reads your Harvest entries from the last 30 days. A Jira administrator can change that window (see Settings below). If you later connect a different Harvest account, the app reads the window again.

Map Jira projects to Harvest projects (administrators)

Only Jira administrators can open the admin page. Connect your own Harvest account first, so the app can list your Harvest projects.

  1. Open Apps, then Worklog Sync.
  2. Open the Project mapping tab.
  3. Under Add or update a mapping, pick the Jira project, the Harvest project and a Default task.
  4. Leave Enabled on and select Save mapping.

Use Remove on a row to delete a mapping. A new or newly enabled mapping makes the app look again through each connected person’s backfill window, so entries that were waiting for it are picked up on the next run.

The default task is used when someone starts a timer or adds an entry from an issue. The app remembers the last task a person used in each project.

Admin page tabs

Tab What it shows
Overview How many people are connected, how many need to reconnect, errors in the last 24 hours, and a table of users with status and last sync.
Project mapping The mappings and the form above.
Settings Default start time (HH:mm), Backfill days (1 to 365) and Sync enabled. Select Save settings.
Sync log Recent log lines and the Divergent links list. You can filter by Atlassian account ID and by level (all, info, warn, error).

Settings defaults: start time 09:00, backfill 30 days, sync on. Harvest entries usually have no start time, so each worklog starts at the default start time in the person’s Jira time zone. Turn Sync enabled off to pause sync for the whole site.

Log time from a Jira issue

Open an issue and find the Harvest timer panel. It needs a connected account and a mapped project. If you are not connected, the panel says so. If the project is not mapped, it asks you to contact a Jira administrator.

Each of these actions writes to Harvest first. The worklog then reaches Jira through the normal sync, usually within seconds to a minute. The panel shows Queued, syncing in a few seconds.

How entries become Jira worklogs

The app checks each connected person’s Harvest entries every hour. Nobody needs to start it. If a person has had no Harvest changes for 7 days, the app checks every 4 hours instead, and returns to hourly after the next change or after that person uses the issue panel.

In Harvest In Jira
A new entry in a mapped project that names an issue A worklog on that issue, in the person’s name where Jira allows. The date is the entry’s date in the person’s Jira time zone.
An edited entry (hours, date, notes or issue) The worklog is updated. If the entry now names a different mapped issue, the worklog moves there.
A deleted entry The worklog is deleted, but only if the app created it.
A running timer Nothing until you stop it.

Hours are rounded to whole minutes. Running the sync twice never creates a second worklog for the same entry.

How an entry finds its issue

  1. The issue reference on the entry. Timers and entries made from the issue panel carry it.
  2. The entry’s existing link, if the entry names no issue.
  3. An issue key in the notes, such as WEB-42. This works only if that key’s Jira project is mapped to the entry’s Harvest project.

If none of these match, the entry is listed in the sync log as unmatched. The app never guesses.

Who owns the worklog

The app writes the worklog as the connected person where Jira allows. If Jira refuses, it writes as the app, after checking that the person has permission on that issue. If that check fails, nothing is written and the entry shows up under Divergent links.

Delete safety

The sync log

Administrators see the log under Apps, Worklog Sync, Sync log. Lines are kept for 30 days, and the page shows the most recent ones, newest first.

Hours by epic report

Every Jira project has an Hours by epic page in its sidebar. Pick a From and To date and select Run. The default range is the first day of the current month to today.

The table lists each epic with its summary, hours and number of issues. Time logged on stories and sub-tasks counts toward their epic. Issues with no epic go to a No epic row. A total line shows the hours across all issues.

The report is read-only and runs as you, so Jira’s own permissions decide what it counts. It reads at most 300 issues and has a time limit of about 20 seconds. If it hits either one, it shows Results truncated. The totals are then incomplete, so narrow the date range.

It counts all Jira worklogs on those issues, not only the ones this app created.

Disconnect

Go to Apps, then My Harvest connection, and select Disconnect. This deletes your stored token and pauses your sync. Worklogs already in Jira stay. To connect again, paste a token and Account ID and save.

To cut access from the Harvest side, delete the token in Harvest ID under Developers.

If a subscription lapses

The admin page and issue panel show a notice that the app is read-only or that sync is paused. Hourly sync stops, and Start, Stop, Add entry, Log to Jira now, Save mapping and Save settings are disabled. Nothing is deleted and nothing is undone. A Jira administrator reactivates the subscription under Apps, Manage apps. The next hourly run catches up.

Uninstall

In Apps, Manage apps, choose Worklog Sync for Harvest and select Uninstall. Sync stops. Worklogs already in Jira remain, because they are ordinary Jira worklogs. Entries in Harvest are not touched.

On uninstall, the app first deletes every person’s Harvest token, then its user records, links, project mappings and settings. This cleanup is time-limited, so on a very large site some records may remain in the app’s Forge storage, which Atlassian deletes after the uninstall. Reinstalling does not bring the data back.

Where your data is stored

Everything is stored in Atlassian Forge storage for your Jira site. We run no servers or databases and receive no data from the app.

Details are in the Privacy policy.

Pricing and licensing

$0.50 per user per month, from the first user. There is no free tier. Paid plans include a 30-day free trial. Atlassian bills by your Jira site’s user tier, and you can see the current price in the Marketplace pricing tab. You also need a Harvest plan, which Harvest bills separately.

Limits

Troubleshooting

Symptom What to do
Test says the token or Account ID is wrong Copy both again from Harvest ID, Developers. The Account ID is a number, not your email.
The panel or Overview says you need to reconnect Harvest rejected the token, probably because it was revoked. Create a new token and save it again.
An entry is missing in Jira Look for it in the Sync log. Usually the Harvest project is not mapped, or the notes have no issue key, or the key’s project is mapped to a different Harvest project. Add the key to the notes, for example WEB-42 fix redirect, and save the entry in Harvest, or fix the mapping.
The panel says the project is not mapped Ask a Jira administrator to add a mapping for it.
A divergent link appears See the sync log section above for the reasons, then fix the cause or edit by hand.
Jira says time tracking is off Turn on time tracking for the project.
A panel action did not show up in Jira Wait a minute, then select Log to Jira now. The hourly run will catch up in any case.
The log shows delete-sweep-capped The app refused to delete more than its safety cap in one run. Check that entries were not deleted in Harvest by mistake. The rest is handled on later days.
The worklog date is off by a day The date uses your Jira profile time zone. Fix it in your Atlassian profile. The app refreshes it daily.
The admin page or panel says the app is read-only The subscription is inactive. A Jira administrator can activate it under Manage apps.

If the problem continues, email the log line’s code and the issue key. Do not send your token.

Help

Worklog Sync for Harvest is not affiliated with or endorsed by Harvest (Forecast). “Harvest” is used only to name the service the app connects to.

Provided by Achref Heraghi, trading as Ironmile, Tunisia.