How the integration works
With the JIRA Software integration, the time your co-workers log on issues in Jira (worklogs) is registered as hours in Project Flow, on the right project and activity, as soon as it is logged.
- One direction. Worklogs go from Jira to Project Flow. Nothing is sent back to Jira.
- Live. Jira sends each new, changed or deleted worklog to Project Flow through a webhook.
- Tasks. If you use tasks in Project Flow, a task is created for each Jira issue the hours are logged on.
- The mapping is in Jira. You put the Project Flow project number, and optionally the activity, in custom fields on the issues in Jira.
Prepare Jira
- Create two custom fields in Jira, for example Project Flow project and Project Flow activity.
- Fill in the Project Flow project number in the project field on each Epic.
- Fill in the activity name on the Epic, or on each issue (Story, Bug and so on). If it is empty, the company's default activity is used.
- Link the issues to the Epic with Epic Link. Issues from Jira Service Management, which have no Epic, use the project field on the issue itself.
- Create an API token for the Jira user Project Flow will use to read issues.
Issue types. Project Flow understands the issue levels Epic, Story, Bug, New Feature and Sub-task, plus the Service Desk types IT Help, Service Request, Incident, Problem, Task, Feature, Change and Service Request with Approvals. Hours on a Sub-task use its parent issue.
Set up the integration in Project Flow
- Go to Setup → Settings → Integrations (Oppsett → Innstillinger → Integrasjoner). You need administrator access.
- Click + Create integration and choose JIRA Software.
- Fill in the fields below, tick Enabled and save.
| Field (EN / NB) | Description |
|---|---|
| JIRA API URL | Your Jira's API address, for example https://yourcompany.atlassian.net/rest/api/2. Required. |
| User name / Brukernavn | The Jira user's e-mail address. Required. |
| API key / API-nøkkel | The API token from Jira. Required. |
| Moment webhook key / Project Flow webhook-nøkkel | A secret word you choose. It is part of the webhook address (see below). Required. |
| Custom field for project number / Customfelt for prosjektnummer | The exact name of the Jira custom field with the Project Flow project number. Required. |
| Custom field for activity / Customfelt for aktivitet | The exact name of the Jira custom field with the activity. Required. |
| Custom field for company | Not used. Leave it empty. |
Project Flow checks Jira when you save. Project Flow logs in to Jira and looks up the custom fields by name, and the field Epic Link. If a field isn't found, or the login fails, the integration isn't saved. Check the URL, user name, API key and the exact field names.
Create the webhook in Jira
In Jira, create a webhook (Settings → System → WebHooks) with:
- URL:
https://app.moment.team/api/1.0/companies/{COMPANYCODE}/webhooks/jira/{webhook key}, where{COMPANYCODE}is your company code from the Project Flow address, and{webhook key}is the Moment webhook key from the integration. - Events: Worklog created, updated and deleted.
Wrong key? If the key in the URL doesn't match the integration, Project Flow ignores the message without telling Jira.
What happens with a worklog
When a worklog is created in Jira, Project Flow:
- Finds the co-worker whose e-mail address in Project Flow is exactly the same as the worklog author's in Jira.
- Finds the project with the project number from the Epic (or the issue). The project must be in progress or an offer.
- Finds the activity on the project by name, or creates it if it doesn't exist.
- Finds or creates the task, if tasks are used: task number = issue key, name = issue summary, tagged with the issue type (for example Story).
- Registers the hours.
| In Project Flow | From Jira |
|---|---|
| Hours | Time spent, in whole minutes |
| Date | The worklog's start date |
| Description | The issue summary |
| Internal note | The worklog comment |
| Billable time | A time in curly brackets in the comment, for example {1:30} |
- Not approved for invoicing. The hours come in as not approved for invoicing, like other new hours.
- Changed in Jira: the hours, billable time, comment and date are updated in Project Flow. Project, activity and co-worker aren't changed.
- Deleted in Jira: the hours are deleted in Project Flow.
- Locked timesheets. Worklogs dated in a locked period aren't registered.
When a worklog isn't registered
The usual reasons are:
- The author's e-mail address in Jira isn't exactly the same as in Project Flow, including upper and lower case.
- The Epic has no project number, or the issue isn't linked to an Epic.
- No project in Project Flow has that number, or it is finished or stopped.
- The activity is finished.
- The date is in a locked period.
No message in Project Flow. Failed worklogs aren't shown in Company → Logs. Compare the hours in Project Flow with the worklogs in Jira regularly, and contact Project Flow support if hours are missing.
Q&A
Q: I can't save the integration.
A: Check the API URL, user name and API key, and that the custom field names are exactly as in Jira. Jira must also have a field called Epic Link.
Q: Hours logged in Jira don't show up in Project Flow.
A: Check the webhook URL and key in Jira, and the reasons under When a worklog isn't registered.
Q: Can I choose billable time from Jira?
A: Yes. Write the billable time in curly brackets in the worklog comment, for example {0:45}. The rest of the comment becomes the internal note.
Q: Are hours from Project Flow sent to Jira?
A: No. The integration only goes from Jira to Project Flow.
Q: Does it work with the new epic hierarchy in Jira Cloud?
A: The integration finds the Epic through the Epic Link field. Check with Project Flow support if your Jira no longer uses it.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article