In this page
PDF export flows changed
Callback flows did not change
How to migrate?
Preparation
Migrate a legacy PDF export flow
Cleanup (optional)
Why should I care?
Legacy PDF export flows are the ones that contain a Send web request action calling the https://jpdfc.midori.systems/rest/v1/automation URL. They will be retired on 1 March 2027. Until then, they keep working, but we strongly recommend migrating them as soon as possible.
Can I migrate the flows one by one?
No. The migration requires regenerating the secret of the PDF callback flow, which immediately breaks all legacy PDF export flows that call back to it.
Therefore, migrate all of them in one go.
What changed?
In earlier versions of Better PDF Automation for Jira, you built PDF automations by calling the PDF Automation API from a Send web request action. This approach worked well at the time, but it is legacy today. Version 2.0.0 introduced the dedicated Export PDF automation action, which replaces it.
PDF export flows changed
The legacy configuration uses the Send web request action with YAML:
- The request body is a hand-written YAML document that specifies what to export (the export: section) and what to do with the exported file (the actions: section).
- The request also needs custom request headers for content type and authentication.
- One mistake in the indentation, a missing header or a typo in a field name is enough to break the flow.
The modern configuration uses the dedicated Export PDF action:
- The Export section replaces the export: section of the YAML. (You can still import a YAML fragment into it!)
- The Actions section replaces the ATTACH and SEND actions of the YAML.
- The Webhook section replaces the CALL action of the YAML.
- Authentication is handled by connecting the action once, so there are no request headers to maintain.
- The form validates the fields, so configuration problems are caught before the flow runs.
Callback flows did not change
The export is still processed asynchronously and the result is still reported back to a webhook. Therefore, your existing PDF callback flow works with the migrated flows without any changes.
How to migrate?
This table shows how the legacy flow configuration maps to the modern one. Use it as a quick reference while migrating.
| Legacy (with Send web request action) | Modern (with Export PDF action) |
|---|---|
| Send web request action with the https://jpdfc.midori.systems/rest/v1/automation URL | Export PDF action |
| Request headers (Content-Type, authentication) | Not needed. Click Connect when adding the action for the first time. |
| export: section | Export section (supports importing a YAML fragment) |
| ATTACH and SEND actions | Actions section (Attach and Send buttons) |
| CALL action (url, secret) | Webhook section |
| Delay execution of subsequent flow actions... option | Not needed. |
| {{webResponse.body.messageId}} and {{webResponse.body.logCommand}} smart values | {{createdJiraExport.messageId}} and {{createdJiraExport.logCommand}} smart values |
Preparation
Before migrating the flows, complete these steps:
- Make sure that you are using the latest version of the Better PDF Automation for Jira app. If you don't see the Export PDF action in the Jira automation flow editor, update your app to the latest version.
-
Regenerate the secret of your PDF callback flow:
- Open the PDF callback flow in the editor.
- Click the Incoming webhook trigger on the left.
- Copy the value of the Webhook URL field.
- Click the regenerate icon ("⟲" on the right side of the Secret field), then the Regenerate button.
- Copy the value of the Secret field. (Save it somewhere safe as it will be unreadable once you leave this step.)
- Click Save at the top.
Migrate a legacy PDF export flow
Repeat these steps for each legacy PDF export flow:
- Login to Jira as administrator.
- Go to Settings (cog icon "⚙" in the top right) → System (under Jira settings) → Global automation (in the left-bar under Automation).
- Find the next legacy PDF export flow to migrate. It contains a Send web request action calling the https://jpdfc.midori.systems/rest/v1/automation URL.
- Open the flow in the editor.
- Click the Send web request action and copy the YAML from its Custom data field to a text editor. You will take the values from here in the next steps.
-
Below the Send web request action, click Add step ("+" icon) → Action, then select the Export PDF action and:
- Click Connect. (This is needed only when you add the action for the first time.)
- At the Export section, click the import icon in the top right corner, paste the export: section of the YAML, then click Apply. Alternatively, generate a fresh YAML fragment in a new browser tab and import that.
-
At the Actions section, re-create each action from the actions: section of the YAML, except the CALL action:
- For each ATTACH action, click the Attach button and set the target work item (the toIssueKey value).
- For each SEND action, click the Send button and set the recipients, email subject and body (the to, cc, bcc, subject and body values).
- At the Webhook section, set the webhook URL and the regenerated secret of the PDF callback flow. (Do not use the old secret from the CALL action of the YAML, because it is not valid anymore.)
-
Click the Log action that follows the web request and replace its Log message with this:
PDF automation started. (ID: {{createdJiraExport.messageId}}, Log command: "{{createdJiraExport.logCommand}}")Make sure that the Log action is placed after the Export PDF action. (The legacy {{webResponse.body...}} smart values will not work with the new action.) - Delete the Send web request action. (Its request headers are deleted with it, as they are not needed anymore.)
- Click Save at the top.
-
Test the migrated flow by triggering it, then check the audit log:
- The PDF export flow should be in "Success" state and should log the ID of the request.
- The PDF callback flow should be in "Success" state and should log the same ID.
- You're done!
Cleanup (optional)
On Jira Cloud Premium and Enterprise plans, the callback logic can be included directly in the PDF export flow using the built-in Delay until control, which makes the separate PDF callback flow unnecessary. This is optional: the migrated flow works perfectly with your existing callback flow, too.
If you want to switch to this model, follow the additional steps in the send or the attach guide. After all your PDF export flows have been switched, you can disable the PDF callback flow.
Questions?
Ask us any time.