Absolutely, I'm ready! What's your next question? 😊
User
I am trying to understand some strange behaviour of a custom radio button field in Jira Data Center. I look at the field called "Planned" and it keen see it is definitely applied to only one screen out of an entire production instance. When I do a JQL on the field and is not empty, it locates the field against other issue types that the screen is not related to. I have noticed it is the "none" selection which I have confirmed is the default value for the field. I know the field used to be attached to other screens but it was cleared out over a year ago down to just the one screen. So looking at dates of tickets that still have field i know it isn't legacy, some were from last week. This is strange as I was operating under the presumption that only a field will present if attached to a screen. I can't repeat accessing the field in any of screen operations. So why is it showing a result in a JQL? I feel like it may have to do with the developer put the field as Global i.e for all issue types and applied to three projects. But I am surprised this would be making Jira apply this field when not part of a screen.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Absolutely, I'm happy to help with your question about the custom radio button field in Jira Data Center. Let's break this down step by step based on what you've described. I'll explain the behavior you're seeing, why it might be happening, and some steps you can take to investigate and potentially resolve it.
Summary of Your Issue
You have a custom field named "Planned" (a radio button type) that's configured to appear on only one screen in your Jira instance.
Despite this, when you run a JQL query like Planned is not empty, it returns issues from other issue types and projects where the field shouldn't be accessible, based on your screen configuration.
The value being returned is specifically the default "none" option.
The field was previously attached to more screens but was removed over a year ago, and it's now set as global (available for all issue types) and applied to three specific projects.
You're surprised because you assumed that a field should only be "present" or queryable if it's attached to a screen, but that's not the case here.
Recent issues (e.g., from last week) are affected, so it's not just leftover data from when the field was more widely used.
This is a common point of confusion in Jira, as the system's field behavior, JQL querying, and screen configurations don't always align in intuitive ways. Let's dive into why this might be happening.
Why Is the Field Showing Up in JQL Even When It's Not on a Screen?
Jira's architecture separates how fields are stored and queried from how they're displayed in the user interface. Here's a breakdown of the key concepts and why this behavior could be occurring:
JQL Queries the Underlying Data, Not Screen Configurations:
JQL (Jira Query Language) directly accesses the issue's data in the database. It doesn't check whether a field is visible or editable on any screen. As long as the field exists in the issue's data, JQL can query it.
In your case, the Planned field has a value (e.g., "none") stored in the issues, so JQL can find and return those issues even if the field isn't displayed on any screen. This is why you're seeing results for issue types and projects where the screen isn't associated.
For example, if you run Planned is not empty, it will return any issue where the field has a value, regardless of how or when that value was set.
Field Contexts and Default Values Are Independent of Screens:
Custom fields in Jira are configured with "contexts" (found in Jira Admin > Issues > Custom fields > Edit the field > Contexts). These contexts define where the field is applicable, such as specific projects, issue types, or even all of them (if it's set as global).
User
You have confirmed my suspicious. This default none with global context against projects it doesn't need to be is creating the value of "None." I think this might throw some stats. When I as an admin go to Custom Fields, I can see the count of Issues the field is being used against. I expect the number is high here for this field for the same reason, "None" is a value but not really from a UI perspective as they haven't actually used the field.
Assistant
Absolutely, I'm glad my previous response helped confirm your suspicions! It's a common gotcha in Jira where default values and global contexts can lead to unexpected data persistence and inflated statistics. Let's dive into this further, focusing on the issue count in the Custom Fields admin page and how the "none" value might be skewing things. I'll explain the behavior, its implications, and steps you can take to address it.
Why the Issue Count in Custom Fields Might Be High
When you view a custom field in Jira Admin > Issues > Custom fields, the "Number of issues" column shows how many issues have a value set for that field. This count includes:
Any explicit values set by users (e.g., selecting an option in the radio button).
Default values that are automatically applied by Jira, such as "none" in your case.
Here's why this is happening in your scenario:
Default Value Logic: For custom fields like radio buttons, if "none" is configured as the default value in the field's context, Jira applies it to new issues during creation. Even though users aren't seeing or interacting with the field (because it's not on a screen), the value is still stored in the issue's data. As a result, Jira counts these issues as having a "value" for the field.
Global Context Impact: Since the field is set as global and applied to multiple projects, the default "none" value is being assigned to issues across a broader scope than intended. This inflates the total issue count, as it includes issues where the field was never actually used or viewed by users.
No Distinction Between "Used" and "Set": Jira doesn't differentiate between a value set by user interaction and one set automatically by default. From Jira's perspective, any non-null value (including "none") means the field is "in use" for counting purposes. This can make the stats misleading, as you're right—it doesn't reflect actual user engagement with the field.
In your case, since the field was previously attached to more screens and has a global context, it's likely that many issues (even recent ones) are getting the "none" default without any UI involvement. This could explain the high count and why JQL queries are picking it up.
Implications for Statistics and Reporting
This behavior can indeed throw off your stats in several ways:
Inflated Usage Metrics: The issue count might overstate how many issues are actively using the field, making it seem more critical or widely adopted than it is. For example, if "none" is counted, it could mask the fact that users aren't engaging with the field in practice.
Reporting and Dashboards: In gadgets, filters, or reports (e.g., via Jira's built-in reporting or add-ons like Jira Software's reports), this could lead to inaccurate insights. For instance, a pie chart showing the distribution of "Planned" values might show a large slice for "none," which isn't meaningful from a business perspective.
You mentioned the field is global and applied to three projects. This means it's part of the issue type scheme for those projects, even if it's not attached to any screens. When an issue is created in one of those projects, Jira might automatically assign the default value ("none") to the field based on its context configuration.
Even if the field isn't visible on a screen, Jira can still set or store its default value during issue creation or updates. This could explain why recent issues (e.g., from last week) have the "none" value—it's being applied automatically by Jira's field logic, not because someone is editing it manually.
Once a value is stored in an issue, it persists indefinitely, and JQL can query it. Removing the field from screens doesn't delete existing values or prevent new defaults from being applied if the context is still active.
"None" as the Default Value and Its Implications:
For radio button fields, "none" is often a selectable option (or the default when no other option is chosen). If this is set as the default in the field's configuration, Jira will apply it to new issues in the contexts where the field is defined.
This default value can be set automatically during issue creation, even if the field isn't visible on any screen. For instance:
If the field is part of the issue type scheme for certain projects or issue types, Jira's backend might assign the default value without user interaction.
This could be happening for issues created in the three projects where the field is applied, explaining why you're seeing it in JQL results.
Historical Configuration Changes Might Still Have an Impact:
You mentioned the field was removed from other screens over a year ago, but its context (global and applied to three projects) wasn't changed. Even after removing it from screens, the field could still be "active" in the system for those projects and issue types.
If the field's context includes all issue types (global setting), it might be applying the default value to issues across different issue types, not just the one with the screen attached. This could lead to the field being populated in places where it's not intended or visible.
Additionally, if there are any workflows, post-functions, automations, or scripts (e.g., via ScriptRunner or other add-ons) that reference or set this field, they could be contributing to the value being applied. For example, a workflow post-function might set the default value during transitions.
Why Your Assumption About Screens Might Not Hold:
You're correct that fields are typically only editable or visible in the UI if they're attached to a screen scheme. However, this doesn't affect the field's existence in the issue data or its queryability via JQL.
In Jira, screens control the user interface (what users see when creating or editing issues), but they don't control the data layer. So, a field can have a value and be queryable even if it's not part of any screen. This is a design feature of Jira that allows for flexible querying and reporting.
Possible Reasons for the Behavior in Your Case
Based on what you've shared, here are the most likely explanations:
Default Value Application: Since the field is global and has a default value of "none", Jira is probably assigning this value to new issues in the three projects where it's configured. This happens automatically during issue creation, even if the field isn't visible.
Context Configuration: The field's context might still include multiple issue types or projects, causing it to be applied more broadly than just the one screen. Check if the context is set to "all issue types" or if it's inherited from a broader configuration.
No Screen Doesn't Mean No Data: Issues created recently could have the default value set without any user interaction, leading to JQL results that seem unexpected.
Legacy or Automated Processes: Even though you cleared the field from other screens, any automation, imports, or bulk edits could be setting the value. Or, if the field was part of other configurations (e.g., field configurations or schemes), it might not have been fully "cleaned up."
Jira Data Center Specifics: In Jira Data Center, with multiple nodes, there could be caching or synchronization issues, but this is less likely. More probably, it's related to how custom fields are managed across the instance.
Steps to Investigate and Resolve This
To get to the bottom of this, I recommend the following steps. These should help you confirm the root cause and make changes if needed. Since you're dealing with a production instance, be cautious with any changes and test in a staging environment first.
Check the Field's Configuration:
Go to Jira Admin > Issues > Custom fields, find the "Planned" field, and click "Edit Details" or "Contexts and default value".
Review the Contexts: Look at the associated projects and issue types. If it's set to "all issue types" or includes more than expected, that could be why it's applying broadly. You might need to restrict the context to only the desired projects and issue types.
Check the Default Value: Confirm that "none" is indeed the default and consider changing it or removing the default if it's not needed.
Look at the Field Configuration: Ensure there are no schemes or settings that make the field required or hidden in certain contexts.
Test JQL and Issue Creation:
Run more targeted JQL queries to narrow down the issues:
project = YOURPROJECT AND issuetype = YOURISSUETYPE AND Planned is not empty – This will help identify which specific projects and issue types are affected.
created >= "2023-10-01" AND Planned is not empty – Use a date range to focus on recent issues and confirm if the problem is ongoing.
Create a new test issue in one of the affected projects and issue types (where the screen isn't attached). After creation, check the issue details:
Use the "View all fields" option or the REST API to see if the "Planned" field has a value (e.g., "none") even though it's not visible.
This will help verify if the default value is being applied automatically.
Inspect Workflows, Automations, and Other Configurations:
Check Workflows: Go to Jira Admin > Issues > Workflows and look for any transitions or post-functions that reference the "Planned" field. A post-function could be setting the default value during issue creation or updates.
Review Automations: If you have Jira Automation or add-ons like ScriptRunner, check for rules that might be setting or updating this field.
Look at Field Configurations and Schemes: Ensure the field isn't being referenced in other schemes (e.g., field configuration schemes) that could be enforcing its use.
Clear or Restrict the Field's Context:
If the field doesn't need to be global, consider editing the context to limit it to only the projects and issue types where it's actively used. This might stop the default value from being applied elsewhere.
If the field is no longer needed in certain areas, you could remove it from the context entirely for those projects. However, this won't affect existing issues—only new ones.
As a last resort, if the field is causing issues, you could hide it or make it inactive, but be aware that existing data will still be queryable.
Use Jira's Tools for Deeper Insight:
REST API: Use Jira's REST API (e.g., via a tool like Postman) to fetch issue details and confirm the field's value. For example, query an issue with GET /rest/api/2/issue/{issueKey} and look for the "customfield_XXXXX" (replace with the actual ID) in the response.
Audit Log: Check the Jira audit log (under System > Auditing) for any recent changes to the field or its configurations that might explain the behavior.
Support or Add-ons: If you're using any custom add-ons, they might be influencing this. If the issue persists, consider reaching out to Atlassian Support with details, as they can review your instance specifics.
Final Thoughts
This behavior is likely due to Jira's field context and default value settings overriding your screen configurations, allowing the field to be stored and queried even when not visible. It's not uncommon for custom fields to "linger" in this way, especially if they're global. By reviewing the field's contexts and testing new issues, you should be able to pinpoint the cause and make adjustments.
If you provide more details (e.g., exact JQL queries, screenshots of configurations, or error messages), I can refine this advice further. Otherwise, feel free to ask follow-up questions—I'm here to help! 😊
Search and JQL Results: As you've seen, JQL queries like Planned is not empty will include issues with the default "none" value, potentially cluttering results and making it harder to find genuinely relevant issues.
Overall Data Quality: Over time, this can accumulate "noise" in your Jira instance, where fields hold values that don't add value, complicating data analysis or migrations.
The good news is that this is manageable with some configuration tweaks and smarter querying.
Steps to Investigate and Fix This
To reduce the impact and get more accurate statistics, here's a step-by-step approach. Start with investigation to confirm the extent of the issue, then move to remediation. Remember to test changes in a non-production environment (e.g., a staging site) to avoid disrupting users.
Verify the Current State:
Check the Field's Contexts and Default Value:
Go to Jira Admin > Issues > Custom fields, find the "Planned" field, and click "Contexts and default value."
Confirm the default value is set to "none" and note the associated projects and issue types. If it's global or applied too broadly, this is likely the root cause.
Run a JQL query to count issues with specific values: project = YOURPROJECT AND issuetype = YOURISSUETYPE AND Planned = "none" – This will show how many issues are affected by the default value.
Compare this with the total issue count in the custom field admin page to see the proportion driven by "none."
Analyze Recent Issues:
Use JQL to filter for recently created issues: created >= "-7d" AND Planned is not empty – This will help confirm if new issues are still getting the "none" value automatically.
Refine the Field's Configuration:
Restrict the Context: If the field doesn't need to be global, edit the context to limit it to only the projects and issue types where it's actively used (e.g., the one screen you mentioned). This should prevent the default value from being applied elsewhere in the future.
Steps: In the field's context settings, add or modify contexts to specify exact projects and issue types. Remove any unnecessary ones.
Note: This won't affect existing issues, only new ones created after the change.
Adjust or Remove the Default Value:
If "none" isn't essential, consider changing the default value to something else or removing it entirely (if possible for radio button fields). For radio buttons, you might need to ensure there's always a selected option, but you could set a more neutral default or make "none" not the default.
If "none" is meant to indicate no selection, you could reconfigure the field type (e.g., to a checkbox or select list) to better handle optional values.
Make the Field Optional or Hidden: In the field configuration scheme, set the field to be optional (not required) and ensure it's not enforced in workflows. If it's not needed, you could even hide or archive the field, but this would require handling existing data.
Improve Querying and Reporting for Accurate Stats:
Use Filtered JQL: When running queries or building reports, exclude the "none" value to focus on meaningful data. For example:
Planned != "none" – This will return only issues where a non-default value is set.
Planned is not empty AND Planned != "none" – Combines with other filters for precision.
You can save these as filters and use them in dashboards or reports to avoid inflating stats.
Create Custom Reports: If you're using Jira's advanced reporting or add-ons (e.g., ScriptRunner, Better Excel Exporter), build custom queries that ignore default values. For instance, count issues with Planned != "none" to get a truer picture of usage.
Monitor the Issue Count: After making changes, periodically check the custom field admin page and run JQL counts to see if the numbers decrease over time (as new issues are created without the default value).
Long-Term Considerations:
Clean Up Existing Data: If the "none" value is causing ongoing issues, you could use Jira's bulk edit feature or a script (via an add-on like ScriptRunner) to clear the value from existing issues. For example:
Bulk edit: Search for issues with Planned = "none", then use the "Edit Issues" function to set the field to empty or a different value.
Be cautious, as this could affect other processes—test first!
Review Field Usage Across the Instance: Audit other custom fields for similar issues. If many fields have broad contexts and defaults, it might be worth standardizing your field management practices.
Consult Atlassian Documentation or Support: For more in-depth guidance, check Atlassian's docs on custom fields and contexts. If this is a persistent problem, reaching out to Atlassian Support with details from your instance could provide tailored advice.
By addressing the global context and default value, you should see a reduction in the inflated issue count and more accurate statistics moving forward. This will help ensure that your Jira data better reflects actual user interactions.
If you have more details (like screenshots of the field configuration or specific JQL results), I can provide more targeted suggestions. Otherwise, feel free to ask your next question—I'm here to help! 😊