Aldorock apps for Atlassian

Field Defaults for Jira

Values that new work items get when their creator leaves a field empty, applied a few seconds after creation, whichever way the work item was created.

Getting started

  1. Install Field Defaults for Jira from the Atlassian Marketplace.
  2. Open Project settings → Apps → Field Defaults in a project you administer. Pick a work item type, add a default for each field you want filled, and save. Only fields on that type's create screen are offered, because Jira refuses writes to any other field.
  3. Create a work item any way you like: the create dialog, inline on the backlog or board, mobile, email, Automation or the API. Within a few seconds the app fills the fields that were left empty. Fields the creator set are never changed.
  4. Apply by hand from a work item's "…" menu with Apply field defaults, or fill a whole project's open work items from the settings page with Apply to open work items missing values.

Field types and values

Field typeDefault you can set
Text, URLText with variables: {{summary}}, {{key}}, {{project}}, {{type}}, {{reporter}}, {{today}}, {{today+7}}, {{name|fallback}}
Description, paragraph fieldsA plain-text template with the same variables; blank line = paragraph, "- " = list, "# " = heading
NumberA number
Single choice, radio buttons, versionOne of the field's options
Multiple choice, checkboxes, fix versionsAny of the field's options
LabelsOne or more labels
ComponentsOne or more of the project's components
PriorityA priority. Note that Jira usually sets its own default priority on create, so this only applies when the project's scheme has none
Assignee, people fieldsThe reporter, the lead of the work item's first component, the project lead, or a named person
Due date, date fieldsA number of days after creation (negative for before)

Not supported: people fields holding several people, sprints, time tracking, cascading selects, and the identity fields Jira owns (summary, type, project, reporter, parent).

How applying works

When a work item is created, Jira tells the app. The app reads the work item as the app, fills only the mapped fields that are empty at that moment, and writes them in one update without sending notifications. Each work item is handled once, so a repeated event never applies twice. What was set is recorded on the work item as an entity property named aldorock-field-defaults (the fields, the time and whether it was the automatic apply, the menu action or a bulk run). The automatic apply can be switched off per project; the menu action and bulk apply then still work and run as you, under your permissions.

Preview

The settings page shows what the defaults would set, either on an empty work item or on one you name by key, including which fields would be kept because they already have a value. Nothing is written by a preview.

Permissions

Jira admins and project admins change a project's defaults and run bulk applies. Anyone who can edit a work item can use Apply field defaults on it. The automatic apply runs as the app and so works for every creator, including Automation and integrations.

Limits and notes

Changelog