Recipes

Overview

Recipes are built-in batch operations that process large numbers of Jira issues. They run as background jobs with progress tracking. The one-shot recipes described here live in the Recipes tab of the Console:

Recipe What it does
Recalculate Fields Recalculates scripted field values for the matching issues
Copy Field Values by JQL Copies the value of one field into another across the matching issues
Bulk Update Field by JQL Sets one field to the same value on the matching issues
Bulk Transition by JQL Moves the matching issues through a workflow transition
Bulk Add/Remove Label Adds or removes a label on the matching issues
Bulk Set Resolution Sets the resolution on the matching issues
Bulk Delete Issues by JQL Permanently deletes the matching issues

The Recipes tab of the Admin Panel holds a separate recipe library for standing automations - see Two-project sync below - and the Connect → Forge filters recipe.


Available recipes

Recalculate Fields

Recalculates scripted field values for issues matching a JQL query. Use this when you change a field script and need to update existing issues.

Parameters:

Parameter Required Description
Scripted Field Yes The scripted field to recalculate
Field Configuration Yes The field context (project/issue type scope) to recalculate
JQL Filter (optional) No Additional JQL to narrow the scope

The recipe automatically combines the field context restrictions with your JQL filter to determine which issues to process; the resulting JQL and issue count are shown under the filter. Values are always written without a changelog entry, whatever the trigger’s Generate changelog setting - see Scripted Fields.

Copy Field Values by JQL

Copies the value of one field into another on every issue matching a JQL query. Use this when migrating between custom fields, retiring an old field, backing up a value before a bulk change, or moving data from a project-scoped field into a global one.

Parameters:

Parameter Required Description
JQL Filter Yes The issues to process - there is no other scope restriction
Source Field Yes The field to copy the value from
Destination Field Yes The field to copy the value into
If the destination is already filled Yes skip or overwrite

Field types must match. There is no universal conversion between field types - writing a text value into a multi-value field would fail on every issue. The recipe compares the schema type of the two fields once per batch, before it writes anything. If the types differ, or either field cannot be found, the batch fails with a single error and no issue is changed.

Behaviour per issue:

Situation Result
Source field is empty Skipped
Destination is filled, mode is skip Skipped
Destination is filled, mode is overwrite Destination is replaced with the source value
Destination is empty Destination is set to the source value

An issue that Jira rejects - for example because the destination field is not on that issue’s screen - is recorded in the job errors with its issue key. The rest of the batch continues.

Bulk Update Field by JQL

Sets one field to the same value on every issue matching a JQL query. Use this for mass priority, label or assignee changes during migrations, project reorganisations and cleanups.

Parameters:

Parameter Required Description
Field Yes The Jira field to update
New Value Yes The value written to that field on every matching issue
JQL Filter Yes Selects the issues to update

The value is sent to Jira as plain text. Fields that expect another shape (a list for labels, an object for assignee or priority) are rejected by Jira per issue: those issues are counted as failed and listed with the Jira error message, while the rest of the run continues.

Issues are updated one by one, so the app needs edit permission on every project in scope. There is no undo - check the issue count shown under the JQL filter before starting.

Bulk Transition by JQL

Moves every issue matching a JQL query through the same workflow transition. Use this for sprint cleanup, workflow migrations, or closing a project.

Parameters:

Parameter Required Description
JQL Filter Yes Selects the issues to transition
Transition Name Yes Workflow transition name, e.g. Done. Matched ignoring case
Comment (optional) No Added to every transitioned issue
Resolution (optional) No Resolution name to set during the transition, e.g. Fixed

The transition is looked up per issue, because transition names map to different ids in different workflows. An issue whose current status offers no transition with that name is counted as skipped and listed in the job errors together with the transitions it does offer - the rest of the batch continues. An issue Jira refuses (missing permission, a mandatory field on the transition screen) is counted as failed, again without stopping the batch.

Comment and resolution are sent only when filled in. Leave the resolution empty to keep the current one - and note the transition must allow the resolution field, otherwise Jira rejects the issue.

Bulk Add/Remove Label

Adds or removes a single label on every issue matching a JQL query. Other labels on those issues are kept - only the label you name is affected.

Parameters:

Parameter Required Description
JQL Filter Yes Issues matching this query will be updated
Label Yes One label, no spaces. Labels are case-sensitive
Action Yes add or remove

Notes:

  • An issue that is already in the target state (the label is present for add, or absent for remove) is counted as skipped and is not sent to Jira.
  • A label that is empty, contains a space, or is longer than 255 characters is rejected before any issue is touched, because Jira does not accept such labels.
  • The label change is applied as an incremental edit, so a label added by someone else while the job runs is not overwritten.

Use this rather than Bulk Update Field by JQL for labels: that recipe writes the field whole and sends the value as plain text, which Jira rejects for a list field.

Bulk Set Resolution

Sets the resolution on every issue matching a JQL query. The value is written directly to the issue, so no workflow transition is executed - this works even for issues whose workflow has no transition that would set a resolution.

Typical uses:

  • Issues closed without a resolution (a common legacy workflow mistake)
  • Renaming a resolution across existing issues after a workflow change, e.g. Won't Fix to Won't Do
  • Correcting resolutions applied by an import

Parameters:

Parameter Required Description
JQL Filter Yes Issues to update
Resolution Yes Resolution name as configured in Jira, e.g. Done. Case is ignored

The resolution name is looked up in the site’s resolution list once per batch. If no resolution matches the name, the job reports a single error and updates nothing - it does not attempt one failed update per issue. Issues that already carry the target resolution are counted as skipped and are not written to, so re-running the recipe over the same query is cheap.

Note: the resolution field must be editable through Jira’s REST API for the target issues, which means it has to be present on the issue’s edit screen. Issues where Jira rejects the update are counted as failed, with the Jira error message recorded per issue.

Which recipe sets a resolution?

You want to Use
Set the resolution and leave the status alone Bulk Set Resolution
Move issues through a workflow transition and set the resolution as part of it Bulk Transition by JQL

Bulk Update Field by JQL cannot do this at all: it sends the value as plain text, and Jira expects an object for the resolution field.

Bulk Delete Issues by JQL

Permanently deletes every issue matching a JQL query. Unlike Jira’s own bulk delete, it is not capped at 1000 issues, which makes it usable after a failed import, an automated test run, or a spam wave, and before decommissioning a project.

Parameters:

Parameter Required Description
JQL Query Yes Every issue returned by this query is deleted
Mode Yes preview lists what would be deleted and changes nothing; delete performs the deletion
Confirmation Yes Must be the exact word DELETE (uppercase)

Deletion is permanent. Jira has no recycle bin: deleted issues, their comments, worklogs and attachments are gone for good. Always run the recipe in preview mode first and check the reported issue keys, then re-run it in delete mode with the same JQL.

Both modes require the confirmation word - a preview that ran without it would never exercise the guard the real run depends on. If the word does not match exactly, the job fails without deleting anything.

Issue keys are reported per item in the job’s item list, the same place per-item errors appear: Preview: would be deleted (no issue was changed) for a dry run, Deleted for the real run. At most 200 items are stored per job, so on a large selection the list is a prefix while the counters stay exact; deletion failures are stored first so they are never crowded out.

Notes and limitations:

  • Deleting issues changes the very result set the job is paging through, so a single run may leave part of the selection behind. Re-run the recipe until a preview run reports nothing.
  • Subtasks are not cascaded: the recipe deletes exactly the issues your JQL selects. Jira rejects the deletion of a parent that still has subtasks, and that issue is counted as failed - include the subtasks in the JQL (they may need a second run, see above).
  • Issues are deleted by the app, so app permissions apply, not those of the admin who starts the job.

Two-project sync

Not a one-shot job: a standing automation from the Admin Panel recipe library. It mirrors issues between two Jira projects (or one Jira project and one JSM project) automatically. Fields, statuses, comments, issue types, sub-task links, and JSM-specific objects (request types, organizations, participants, approvals, SLA snapshot) sync based on rules you configure.

Connect → Forge: update saved filters

A one-time recipe in the Connect → Forge filters sub-tab of the Admin Panel Recipes tab. Before a JiBrok Connect app is updated to its Forge edition, it takes a snapshot of the Connect fields; after the update it previews and rewrites the saved filters that still reference them, so they point at the Forge fields.


Running a recipe

  1. Open the Recipes tab in the Console
  2. Select a recipe from the list
  3. Configure the parameters
  4. Click Start and confirm

The recipe validates parameters, counts matching issues, and starts a background job. You will see the job appear in the progress list immediately.


Tracking progress

Each running recipe shows:

Field Description
Status pending, running, completed, failed, or cancelled
Total Total issues to process
Processed Successfully processed issues
Failed Issues that encountered errors
Skipped Issues that were skipped

Progress updates in real-time. Click the job to see per-item errors if any occurred.


Duplicate prevention

If a recipe with identical parameters is already running, starting a new one is blocked. Wait for the existing job to complete or cancel it first.


Cancellation

Click Cancel Job on a running job to stop it. Issues already processed keep their new values - cancellation only prevents processing of remaining issues.


Next steps


JiBrok Studio for Jira Cloud JiBrok Studio for Jira Cloud
Release notes
Core Features
Triggers
Extensions
Data Storage
Scripting Overview
JavaScript Engine
Python Engine
Groovy Engine
Scripting API
Administration
Guides