Field context configuration

Cloud This page documents the Forge build of Time in Status for Jira Cloud. On Jira Data Center or Server? See Time in status | SLA | Timer | Stopwatch for Data Center.

What is a field context?

In Jira, every custom field has one or more contexts. A context defines which projects and issue types the field applies to. By default, a new custom field has a single Global context that covers all projects and issue types.

You can create additional contexts to scope a field to specific projects or issue types. For example, you might have one context for “Project A, Bug type” and another for “All other projects.”


How contexts work with Time in Status

Each Time in Status field (Time in Status, Stopwatch, Timer, Time Between Dates, Calendar Select) is a standard Jira custom field. To make it calculate values, you need to bind each field context to a field setting.

The relationship is:

Jira custom field
  └── Field context (scope: projects + issue types)
        └── Field setting (calculation rules)

One field setting can serve multiple contexts. For example, you can create a single “Standard SLA” timer setting and bind it to contexts across several projects.


Configuring a field context

Step 1: Open the field’s context list

  1. Go to Jira Settings > Issues > Custom fields
  2. Find your Time in Status field in the list
  3. Click … (more actions) > Contexts and default value

You will see a list of all contexts for this field.

Configure custom field page in Jira admin with the Custom field config row and the Edit custom field config link inside the context block

Step 2: Open context configuration

In the list, find the block of the context you want to configure. Open its Custom field config section and click Edit custom field config. Jira opens a page titled Edit custom field config: <field name> - this is the Time in Status configuration panel provided by the app.

The context name itself is not a link - the app panel is only reachable through Edit custom field config, or by opening the URL directly:

https://<your-site>.atlassian.net/jira/settings/issues/field/{fieldId}/context/{configurationId}/configure/app

Both IDs are visible in your browser’s address bar while you are on the context list page.

Edit custom field config page showing the Time in Status configuration panel provided by the app

Step 3: Select or create a field setting

The configuration panel lets you:

  • Select an existing field setting from the dropdown - choose a setting you have already created in the admin panel
  • Create a new field setting - opens the admin panel to create a new setting, then returns to bind it

The list contains the active settings of the same type; a currently bound setting that is inactive is marked (inactive). After you save, the screen shows a summary of the setting: statuses or events, goal, dates, calendar and format. The link Manage … settings opens the admin panel.

One context is bound to one setting; one setting can be bound to several contexts and fields. Clearing the setting and saving removes the binding.

Once a field setting is selected and saved, the app calculates the value for every issue of the context in the background. The progress is on the Recalculation tab.

A field setting that is not bound to any context is marked in its row in the admin panel with a short Not bound label and Not bound to a field context - nothing is calculated with an Open Health Check button; the Health Check tab lists contexts without a setting and settings without a context, and binds them with Bind; the Recalculation tab lists unbound contexts.


Which issues get a value

An issue gets a value when it is in a bound context, passes the JQL filter and Issue date limit of the setting, and its project does not exclude the app (see Projects this app is excluded from). The value is written only to the field contexts that contain the issue.


Automatic context sync

The app automatically detects when field contexts are created, updated, or deleted in Jira. When you:

  • Create a new context - the app registers it and waits for you to bind a field setting
  • Update a context (change projects or issue types) - the app adjusts which issues are recalculated
  • Delete a context - the app cleans up the binding and stops calculating for the removed scope

Tips

  • Start with the admin panel: create your field settings, calendars, and events in the admin panel before configuring contexts. This way you will have settings ready to bind.
  • One setting, many contexts: reuse the same field setting across multiple contexts to keep configuration consistent.
  • Check the calculation: after binding, the app calculates the value for every issue of the context in the background - follow the progress on the Recalculation tab. No manual recalculation is needed.
  • Orphaned contexts: if a field is deleted from Jira but its context data remains, use the Recalculation tab to clean up orphaned entries.