Contractors log their hours in Jira. Finance needs those hours in NetSuite: as time entries on the right project, on invoices to the right customer, and as revenue in the right month. In between there is usually a spreadsheet: someone exports worklogs at month-end, fixes the names, looks up rates, and keys or imports the result. It is slow, it happens at the worst time of the month, and nobody can say for sure which Jira worklogs a given invoice line came from.
I have automated this flow for contractor billing: Jira kept clean at the source, worklogs read incrementally, one NetSuite time entry per person, project and day, and revenue recognised for hours that are approved but not yet invoiced. This guide walks through the design, the Jira and NetSuite pieces, and two tested Groovy scripts for a Boomi Data Process shape. The same design works on Celigo, Workato or any other integration platform.
What the automation does

- Contractors log time in Jira, on issues that belong to a billable NetSuite project.
- Jira Automation keeps the data clean: every billable issue carries its NetSuite project, and missing timesheets are chased before the period closes.
- The integration reads new, changed and deleted worklogs since its last run.
- Worklogs are grouped into one time entry per contractor, project and day, and upserted into NetSuite by external ID, so a re-run never creates duplicates.
- Finance bills and recognises revenue from those time entries: invoices from billable time, plus a month-end accrual journal for approved hours not yet invoiced.
Step 1: Decide what has to match
Most problems in this kind of integration are matching problems, not API problems. Agree on these links with finance and the project leads before writing any code:
| In Jira | In NetSuite | How they are linked |
|---|---|---|
| The contractor (Jira user) | The record you track their time against, usually an employee record flagged as a contractor | Atlassian account ID stored on the NetSuite record, or a cross-reference table in the integration |
| Issue (or epic, or Jira project) | Project, under its customer | A “NetSuite project” field on the issue, inherited from the epic or set per Jira project |
| Kind of work | Service item (for example “Integration consulting – senior”) | A field on the issue, or the contractor’s default item |
| Billable or not | Billable flag on the time entry | Jira project or issue type, or a field on the issue |
| Rate | Billing rate on the project, the item or the contract | Kept in NetSuite: the integration sends hours, NetSuite holds the money |
Tip: Keep rates out of Jira. Contractors don’t need to see them, and NetSuite already has a place for project and item billing rates. The integration sends hours; NetSuite does the pricing.
Step 2: Automate Jira so the data is right at the source
Fixing a missing project at month-end costs far more than preventing it. Jira Automation rules (Project settings → Automation, or global rules for several projects) do most of the work:
- Every billable issue has a NetSuite project. Rule: when an issue is created or moved into a billable Jira project, copy the NetSuite project from its epic; if there is none, comment on the issue and notify the project lead.
- New NetSuite projects appear in Jira automatically. The integration runs the other way too: when a project is created in NetSuite, it creates the matching epic (or component) in Jira with the NetSuite project ID filled in. Nobody types IDs by hand.
- Missing time is chased before close. A scheduled rule a few days before period end reminds contractors to complete their time. For project leads, a saved filter such as
project = PRJ AND worklogDate >= startOfMonth()shows which issues have time logged this month, andworklogAuthornarrows it to one person. - The period is locked. After the cut-off, worklogs for the closed period shouldn’t change. If you use a timesheet app with approvals (Tempo, for example), post only approved time; with plain Jira worklogs, agree a cut-off date and treat later edits as next-period adjustments.
Step 3: Read worklogs from Jira incrementally
Jira Cloud’s REST API has endpoints made for exactly this: lists of worklog IDs changed since a point in time, so the integration never has to re-read every issue.
| Call | What it returns |
|---|---|
GET /rest/api/3/worklog/updated?since=<epoch ms> | IDs of worklogs created or changed since the time given, with paging (lastPage, nextPage) |
POST /rest/api/3/worklog/list with {"ids": [...]} | The full worklogs for those IDs: author, issue, started, timeSpentSeconds, comment |
GET /rest/api/3/worklog/deleted?since=<epoch ms> | IDs of worklogs deleted since the time given |
POST /rest/api/3/search/jql | Issue fields you need for matching (the NetSuite project field, epic, issue type), paged with nextPageToken |
How I run it:
- Store the
untilvalue from the last run (a persisted process property in Boomi) and pass it assincenext time. - Follow
nextPageuntillastPageis true, then fetch the worklogs in batches withworklog/list. - Look up each worklog’s issue once per run (a JQL search on the issue IDs) to get the NetSuite project and item.
- For every day touched by a changed or deleted worklog, re-read all worklogs for that person and day, so the daily total is recalculated from scratch rather than patched.
Authentication is HTTP Basic with the email of a dedicated integration account and an Atlassian API token. Give that account read access to the billable projects only, and keep the token in a Boomi connection or password-type property set by environment extension, never inside the process.
Note: The older /rest/api/3/search endpoint has been removed from Jira Cloud. Use /rest/api/3/search/jql, which pages with nextPageToken and no longer returns a total count.
Step 4: One time entry per person, project and day
Posting every Jira worklog as its own NetSuite time entry works, but it fills NetSuite with fragments and makes edits hard to follow. Grouping by contractor, project and day gives finance clean timesheets and gives the integration a natural key: jira-<employee>-<project>-<yyyyMMdd>. That key becomes the NetSuite external ID, so re-running the same day simply overwrites the same time entry.
The script below runs in a Data Process shape after the worklogs have been matched to NetSuite IDs. It also takes care of three details that cause most month-end differences:
- Time zones: the working day is the date in the worklog’s own offset (
startedcarries it), not the server’s date. A contractor logging at 23:30 in New York stays on the right day. - Rounding: if the contract bills in quarter hours, the daily total is rounded up once (
ROUND_MINUTES = 15), not each worklog separately. Agree the policy with finance; with0it rounds to two decimals. - The period: worklogs outside
PERIOD_START…PERIOD_ENDare skipped, so a late edit to a closed month never changes it silently.
// Boomi Data Process shape: turn Jira worklogs into one NetSuite time entry per person, project and day.
// In: one JSON document with the period's worklogs, already matched to NetSuite IDs:
// [{"worklogId":"10001","issueKey":"PRJ-12","started":"2026-10-05T09:00:00.000+0530",
// "seconds":5400,"nsEmployee":"311","nsProject":"1042","nsItem":"25"}, …]
// DPP PERIOD_START, PERIOD_END (yyyy-MM-dd, inclusive: the period being closed)
// DPP ROUND_MINUTES (optional, e.g. 15 rounds each day's total up to a quarter hour)
// Out: one document per time entry, ready for a NetSuite upsert by external ID:
// {"externalId":"jira-311-1042-20261005","employee":"311","project":"1042","item":"25",
// "date":"2026-10-05","hours":2.5,"memo":"Jira PRJ-12, PRJ-15 (worklogs 10001, 10007)"}
// DDP time_entry_status = ok, or error with DDP time_entry_error, for worklogs that can't be posted.
import java.util.Properties
import java.io.ByteArrayInputStream
import java.math.RoundingMode
import java.time.LocalDate
import java.time.OffsetDateTime
import java.time.format.DateTimeFormatter
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
import com.boomi.execution.ExecutionUtil
final String P = 'document.dynamic.userdefined.'
final DateTimeFormatter JIRA_TIME = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSZ")
LocalDate periodStart = LocalDate.parse(ExecutionUtil.getDynamicProcessProperty('PERIOD_START'))
LocalDate periodEnd = LocalDate.parse(ExecutionUtil.getDynamicProcessProperty('PERIOD_END'))
int roundMinutes = (ExecutionUtil.getDynamicProcessProperty('ROUND_MINUTES') ?: '0') as int
def emit = { Map body, Properties template, String status, String error ->
Properties p = new Properties()
p.putAll(template)
p.setProperty(P + 'time_entry_status', status)
if (error) p.setProperty(P + 'time_entry_error', error)
dataContext.storeStream(new ByteArrayInputStream(JsonOutput.toJson(body).getBytes('UTF-8')), p)
}
for (int i = 0; i < dataContext.getDataCount(); i++) {
Properties props = dataContext.getProperties(i)
List worklogs = new JsonSlurper().parse(dataContext.getStream(i), 'UTF-8') as List
Map<String, Map> days = new TreeMap<>()
worklogs.each { w ->
// The working day is the date in the worklog's own time zone, not the server's.
LocalDate day = OffsetDateTime.parse(w.started as String, JIRA_TIME).toLocalDate()
if (day.isBefore(periodStart) || day.isAfter(periodEnd)) return
if (!w.nsEmployee || !w.nsProject) {
emit(w as Map, props, 'error', !w.nsEmployee ? 'Jira user is not linked to a NetSuite employee or vendor' : "Issue ${w.issueKey} has no NetSuite project")
return
}
String key = "${w.nsEmployee}-${w.nsProject}-${day.format(DateTimeFormatter.BASIC_ISO_DATE)}"
Map d = days.computeIfAbsent(key) { [employee: w.nsEmployee, project: w.nsProject, item: w.nsItem, date: day, seconds: 0L, issues: new TreeSet(), ids: new TreeSet()] }
d.seconds += (w.seconds as long)
d.issues << w.issueKey
d.ids << (w.worklogId as String)
}
days.each { key, d ->
long minutes = Math.round(d.seconds / 60.0d)
if (roundMinutes > 0) minutes = ((minutes + roundMinutes - 1).intdiv(roundMinutes)) * roundMinutes
if (minutes == 0) return
BigDecimal hours = (minutes / 60.0).setScale(2, RoundingMode.HALF_UP).stripTrailingZeros()
emit([externalId: 'jira-' + key, employee: d.employee, project: d.project, item: d.item, date: d.date.toString(),
hours: hours, memo: "Jira ${d.issues.join(', ')} (worklogs ${d.ids.join(', ')})".toString()], props, 'ok', null)
}
}
Worklogs that can’t be posted (a Jira user not linked to NetSuite, or an issue without a project) come out as separate documents with time_entry_status = error and a readable reason. Route them with a Decision shape to an alert or a Jira comment, so the person who can fix them sees them, and they never reach NetSuite half-matched.
Step 5: Create the time entries in NetSuite
Each ok document maps to a NetSuite time entry (the timeBill record in SuiteTalk REST, Track Time in the UI):
- Upsert by external ID:
PUT /services/rest/record/v1/timeBill/eid:jira-311-1042-20261005. The first run creates the entry, later runs update it. - Employee, customer/project, service item, date, hours, billable flag and memo come from the document; the memo keeps the Jira issue keys and worklog IDs, so anyone in finance can trace a line back to Jira.
- Approval: if hours were approved before they left Jira, post them as approved; otherwise let them land pending and use NetSuite’s time approval. Only approved time should be billed or accrued.
- Deleted days: if a day’s total drops to zero (all its worklogs deleted), delete or zero the time entry with the same external ID.
Watch out: NetSuite limits how many web service requests an account handles at once. Send time entries in a controlled number of parallel calls and retry on concurrency errors, rather than flooding the account at month-end. New integrations should use REST with OAuth 2.0; see connect NetSuite with Boomi (REST).
Step 6: Recognise revenue for the hours
For time-and-materials work, revenue generally follows the hours worked at the contract rate. How it is booked is your finance team’s policy; these are the three patterns I see most:
| Pattern | How it works in NetSuite | Good fit |
|---|---|---|
| Invoice from time | Billable time on the project is pulled onto the customer invoice (Bill Costs To Customer, or charge-based billing) | Hours are invoiced in the same period they are worked |
| Accrue unbilled time at month-end | A journal debits unbilled receivables and credits services revenue for approved, not-yet-invoiced hours, and reverses on day one of the next period | Invoices go out after the month closes, or on milestones |
| Advanced Revenue Management | Revenue arrangements and recognition plans driven by project progress or actual hours | Mixed contracts: fixed fee plus time, or several performance obligations |
The month-end accrual is the one that usually ends up in a spreadsheet, so it is worth automating. Feed the script approved, unbilled time entries with their contract rate (a NetSuite saved search is the easiest source) and it builds one balanced journal per currency, a pair of lines per project, dated on the last day of the period and reversing the next day.

// Boomi Data Process shape: build the month-end journal that recognises revenue for approved hours
// that have not been invoiced yet (time and materials).
// In: one JSON document: approved, unbilled time entries with the contract rate, e.g. from a NetSuite saved search
// [{"project":"1042","customer":"88","hours":2.5,"rate":"120.00","currency":"USD"}, …]
// DPP PERIOD_END (yyyy-MM-dd: the journal date)
// DPP UNBILLED_ACCOUNT (internal ID of the unbilled receivable / contract asset account)
// DPP REVENUE_ACCOUNT (internal ID of the services revenue account)
// Out: one journal per currency, debit unbilled and credit revenue per project, reversing on the next day:
// {"externalId":"accrual-USD-20261031","tranDate":"2026-10-31","reversalDate":"2026-11-01",
// "currency":"USD","memo":"…","lines":[{"account":"…","debit":"300.00","entity":"88","project":"1042",…}, …]}
import java.util.Properties
import java.io.ByteArrayInputStream
import java.math.RoundingMode
import java.time.LocalDate
import java.time.format.DateTimeFormatter
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
import com.boomi.execution.ExecutionUtil
LocalDate periodEnd = LocalDate.parse(ExecutionUtil.getDynamicProcessProperty('PERIOD_END'))
String unbilled = ExecutionUtil.getDynamicProcessProperty('UNBILLED_ACCOUNT')
String revenue = ExecutionUtil.getDynamicProcessProperty('REVENUE_ACCOUNT')
for (int i = 0; i < dataContext.getDataCount(); i++) {
Properties props = dataContext.getProperties(i)
List entries = new JsonSlurper().parse(dataContext.getStream(i), 'UTF-8') as List
// currency -> project -> [customer, hours, amount]; money in BigDecimal, never double
Map<String, Map<String, Map>> byCurrency = new TreeMap<>()
entries.each { e ->
BigDecimal hours = new BigDecimal(e.hours.toString())
BigDecimal amount = hours * new BigDecimal(e.rate.toString())
Map p = byCurrency.computeIfAbsent(e.currency as String) { new TreeMap<>() }
.computeIfAbsent(e.project as String) { [customer: e.customer, hours: 0G, amount: 0G] }
p.hours += hours
p.amount += amount
}
byCurrency.each { currency, projects ->
List lines = []
BigDecimal total = 0G
projects.each { project, p ->
String amount = p.amount.setScale(2, RoundingMode.HALF_UP).toPlainString()
String memo = "Unbilled ${p.hours.stripTrailingZeros().toPlainString()} h, project ${project}"
lines << [account: unbilled, debit: amount, entity: p.customer, project: project, memo: memo]
lines << [account: revenue, credit: amount, entity: p.customer, project: project, memo: memo]
total += new BigDecimal(amount)
}
Map journal = [externalId: "accrual-${currency}-${periodEnd.format(DateTimeFormatter.BASIC_ISO_DATE)}".toString(),
tranDate: periodEnd.toString(), reversalDate: periodEnd.plusDays(1).toString(), currency: currency,
memo: "Revenue for approved, unbilled hours to ${periodEnd} (${total.toPlainString()} ${currency})".toString(),
lines: lines]
dataContext.storeStream(new ByteArrayInputStream(JsonOutput.toJson(journal).getBytes('UTF-8')), props)
}
}
A few rules keep it trustworthy:
- Money in
BigDecimal, rounded once per line to cents, so the journal always balances. - An external ID per currency and period (
accrual-USD-20261031): running the close twice updates the same journal instead of doubling revenue. - Automatic reversal: with the Reversing Journals feature, the
reversalDatemakes NetSuite post the reversal for you. When the invoice is raised next month, revenue moves from the accrual to the invoice without anyone touching it. - Entity and project on every line, so revenue by customer and project reports correctly before the invoice exists.
Step 7: Reconcile and control
Automation earns trust when finance can check it. I add three things to every build:
- A reconciliation report: hours per project and period in Jira against hours in NetSuite time entries. Any difference has a name, a day and a reason.
- An error queue that people work: unmatched users and issues raise an alert with a link to the Jira issue, and are retried automatically on the next run once fixed.
- An audit trail: the external IDs and the memo with worklog IDs tie every time entry and journal line back to Jira; Boomi’s process reporting shows which run created or changed it.
Common pitfalls
- Matching people by name. Names change and repeat. Use the Atlassian account ID.
- Patching totals instead of recalculating them. One edited or deleted worklog changes the whole day; always recompute the day.
- Converting dates in the server’s time zone. Use the offset on each worklog.
- Rounding every worklog. Round the daily total once, the way the contract says.
- Changing closed periods. Late edits go into the next open period, as an adjustment finance can see.
- Rates in two places. Keep pricing in NetSuite only.
Run the scripts yourself
Both scripts are plain Groovy with no extra libraries, and I tested them against a stand-in for Boomi’s dataContext and ExecutionUtil: worklogs on the same day merging into one entry, time zones, quarter-hour rounding, the period filter, unmatched users and issues, identical output on a re-run, per-project amounts rounded to cents, balanced journals and the reversal date. In Boomi, set the process properties (PERIOD_START, PERIOD_END, ROUND_MINUTES, UNBILLED_ACCOUNT, REVENUE_ACCOUNT) with a Set Properties shape before each script.
If you are planning a Jira to NetSuite integration, or want to replace a month-end spreadsheet with something finance can trust, see NetSuite consulting and Boomi integration consulting, or get in touch through the contact page.


Comments 0
No comments yet. Start the discussion.