In Jira Service Management, how can I tell if an Issue was created by a customer and came through the portal verse being just created within the Jira Service Management project?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Differentiating between issues created by customers via the portal and those created internally within a Jira Service Management project (e.g., by agents, or via email/API but without a Request Type) is a common need for reporting and process analysis.
Here's how you can tell, from most reliable to less reliable, along with JQL examples:
1. The "Request Type" Field (Most Common and Reliable Indicator)
This is typically the strongest indicator.
How it works: When a customer creates an issue through the portal, they must select a Request Type. When an agent creates an issue internally (e.g., by clicking "Create" in the top bar or within the project), they can choose a Request Type, but often they don't, or they select a generic "No request type" option if configured.
Customer Portal Creation: Issues created via the portal will always have a Request Type selected.
JQL:Request Type is not EMPTY
Internal Jira Creation (often by Agents): Issues created directly by agents in Jira often do not have a Request Type assigned, or it might be set to a generic internal type.
JQL:Request Type is EMPTY
Nuances:
Email Channel: If your JSM project has an email channel configured to automatically map incoming emails to a specific Request Type, then issues created via email will also have a Request Type.
Agent Populating Request Type: An agent can manually set a Request Type when creating an issue internally. This would make it look like a portal request using Request Type is not EMPTY. This is why you might need to combine with other indicators.
2. The "Channel" or "Source" Field (Newer JSM Versions - Best Indicator if Available)
In more recent versions of Jira Service Management Cloud, Atlassian has introduced a "Channel" or "Source" field that explicitly tracks how an issue was created. This is the most direct way if available.
How it works: This field automatically populates based on the creation method.
Customer Portal Creation:
JQL:Channel = "Portal" (or Source = "Portal")
Internal Jira Creation:
JQL:Channel = "Jira" (or Source = "Jira")
Other common values: "Email", "API", "Automation"
Nuances: This field might not be visible by default on all screens. You might need to add it to your screen schemes.
3. Comparing "Reporter" and "Creator" Fields
"Reporter": The person who reported the issue (often the customer).
"Creator": The person who physically clicked the create button (or sent the API call, etc.).
Customer Portal Creation:
Typically, the Reporter will be the same as the Creator (the customer themselves).
JQL:Reporter = Creator AND Request Type is not EMPTY (combining with Request Type for stronger accuracy).
Internal Jira Creation (by Agent on behalf of Customer):
If an agent creates an issue for a customer, the Creator will be the agent, but the Reporter will be the customer.
JQL:Reporter != Creator AND Request Type is EMPTY (highly indicative of agent creation without a specific Request Type).
JQL (Agent creating for customer, potentially with Request Type):Reporter != Creator (This catches cases where an agent does select a Request Type for a customer).
4. Custom Fields + Automation (Proactive Approach for Definitive Tracking)
For the most accurate and consistent tracking, you can implement a custom field with Jira Automation:
Create a Custom Field:
Name: "Creation Source" (or similar)
Type: Select List (single choice)
Options:Portal, Internal - Agent, Email, API, Other
Set up Jira Automation Rules:
Rule 1: Set "Creation Source" for Portal Issues
Trigger:Issue Created
Condition:Request Type is not EMPTY (or Channel = "Portal" if available)
Action:Edit issue -> Creation Source = Portal
Rule 2: Set "Creation Source" for Internal/Agent Issues
Trigger:Issue Created
Condition:Request Type is EMPTY (and/or Creator is an Agent)
(You can add similar rules for API integration if you use one)
Pros of this approach:
100% Reliable: You have a dedicated field for accurate reporting.
Simplified JQL: Just use Creation Source = "Portal" or Creation Source = "Internal - Agent".
Clear BI: Easy to use this field in any BI tool.
5. Audit Log (Retrospective Analysis)
Jira's Audit Log records issue creation events, including the user who performed the action and the method.
How to access: Jira Administration > System > Audit Log.
Search for: "Issue created" events. You can then see the "User" (who created it) and sometimes the "Source Application" or "Service Project Request Type" details.
Pros: Useful for investigating specific issues retrospectively.
Cons: Not practical for bulk analysis or JQL filtering directly on issues.
Summary Table:
Method
Reliability
Best For
JQL Example
Notes
Request Type
High
General distinction
Request Type is EMPTY (Internal)
Email channel can also populate it. Agents can manually set it.
Channel/Source Field
Very High
Direct identification (if available)
Channel = "Portal"
Newer JSM Cloud feature.
Reporter vs. Creator
Medium-High
Differentiating agent-on-behalf-of customer
Reporter != Creator (Agent creation for customer)
Stronger when combined with Request Type or Channel.
Custom Field + Automation
Excellent
Definitive, proactive tracking
Creation Source = "Portal"
Requires initial setup but provides the most reliable data.
Audit Log
Excellent
Retrospective investigation
N/A (Admin UI only)
Not for JQL or direct issue field analysis.
For the most robust and future-proof solution, especially if accurate reporting is critical, implementing a custom "Creation Source" field driven by Jira Automation is highly recommended.
User
What is the practical application of having different contexts for a custom field in Jira?
Assistant
Custom field contexts in Jira are a powerful, yet often misunderstood, feature that allows you to tailor the behavior of a single custom field based on the project and/or issue type it's applied to.
Think of it this way: instead of creating dozens of separate custom fields (e.g., "Department (IT)", "Department (HR)", "Department (Marketing)"), you create one custom field called "Department" and then configure different "contexts" for it. Each context defines how that field behaves for a specific combination of projects and issue types.
What Does a Custom Field Context Control?
A context allows you to define:
Applicable Projects: Which projects the context applies to (all projects, selected projects, or no projects).
Applicable Issue Types: Which issue types within those projects the context applies to (all issue types, selected issue types, or no issue types).
Options for Select/Dropdown Fields: This is the most common and impactful use case. You can have different dropdown values for the same field in different projects or issue types.
Default Value: A specific default value for the field within that context.
(Less Common) Search Template: How the field is indexed and searched for within that context.
Practical Applications of Having Different Contexts
Here are the key practical applications:
1. Project-Specific Dropdown Options (Most Common & Powerful)
Scenario: You have a custom field called "Client Sector".
Context 1 (Sales Project): Options include "New Lead", "Existing Customer - SMB", "Existing Customer - Enterprise".
Context 2 (Service Project): Options include "Small Business Support", "Enterprise Support - Gold Tier", "Enterprise Support - Platinum Tier".
Benefit:
UI Clarity & Simplicity: Users only see relevant options for their project, reducing clutter and cognitive load.
Data Accuracy: Prevents users from selecting irrelevant options, leading to cleaner data.
Reduced Field Proliferation: You don't need a Client Sector (Sales) and Client Sector (Service) field. You have one "Client Sector" field managed efficiently.
2. Issue Type-Specific Dropdown Options
Scenario: You have a custom field called "Resolution Reason".
Options include "Fixed", "Won't Fix", "Duplicate", "Cannot Reproduce".
User
Thanks for the breakdown, so to confirm regardless of having different context and what this can do, the one consistent thing is the field name must remain the same?
Assistant
Yes, that's absolutely correct!
Regardless of how many contexts you create for a custom field, the custom field's name (and its internal ID, cf[xxxxx]) must remain the same.
The contexts only define the behavior and presentation of that single custom field based on project and/or issue type. They do not change the field's fundamental identity or its name.
Think of it like this:
You have a single container (the custom field with its name, e.g., "Department").
Contexts are different "lids" or "filters" you can put on that container. Depending on which project/issue type (the context) you're in, a different lid applies, showing different options, default values, or even if the field is visible.
But it's always the same "Department" container underneath.
This consistency is precisely why contexts are so powerful: they allow you to maintain a clean and manageable list of custom fields in Jira, while providing highly tailored experiences to your users without creating redundant fields.
User
So a risk would be if an admin doesn't realise that custom field has multiple contexts and renames it due to a change request from one project, another project will get impacted.
Assistant
You've hit on a very significant and common risk in Jira administration!
Yes, you are absolutely correct. If an administrator is unaware that a custom field has multiple contexts defined, and they rename the field to satisfy a request from one specific project, it will indeed impact every other project and issue type that uses that same custom field, regardless of its context.
Why this is a significant risk:
Global Name Change: The field's display name is a global attribute. When you rename it in the Custom Fields administration, that new name immediately propagates to every single context, every single screen, every single JQL query, and every single report or dashboard where that field is displayed or used.
Unintended Consequences for Other Projects:
Confusion for Users: Users in other projects will suddenly see a field with a different name. This can be jarring, confusing, and lead to a perception of instability in the system.
Broken JQL Queries: Any saved JQL filters, dashboards, or quick filters that explicitly use the old field name will break. This can disrupt reporting, team dashboards, and general workflows.
Broken Automation Rules: Jira Automation rules or ScriptRunner scripts that reference the field by its display name will fail. This could lead to workflows not executing correctly, missing notifications, or incorrect data being set.
Broken Integrations: External BI tools (Tableau, Power BI), data warehouses, or other integrated systems that pull data from Jira and rely on the field's display name will likely break or return incorrect data.
Outdated Documentation: Internal team documentation (e.g., Confluence pages explaining processes) that references the old field name will become inaccurate.
Loss of Trust and Communication Breakdown: Projects that were not consulted or informed about the name change will feel a lack of control and communication. This can erode trust in the Jira administration team and lead to resistance to future changes.
Mitigation Strategies:
To prevent this critical risk, Jira administrators should adopt the following best practices:
Always Check Contexts Before Modifying:
Before renaming any custom field, navigate to its configuration page (Jira Admin > Issues > Custom Fields).
Click the "..." (three dots) next to the field and select "Contexts and default value".
User
Lets talk more about renaming a custom field. Talk me through what will occur if I rename a custom field called "Tasked To" to "Tasked Company." This is not creating new field but just renaming. Tell me about all the impacts and consider this field has had high use over the last year and is incorporated into scripts, automation rules and no doubt in saved filters by users for their kanban boards and dashboards.
Assistant
You are about to embark on a potentially highly disruptive change. Renaming a custom field with "high use over the last year" and deep integration into scripts, automation, and user filters/dashboards is one of the most impactful administrative actions you can take in Jira.
The custom field's internal ID (cf[xxxxx]) will remain the same, which is what Jira truly uses under the hood. However, its display name is what users, most JQL queries, some automation/scripts, and many integrations interact with. Changing this display name will cause a cascade of effects.
Let's break down the impact of renaming "Tasked To" to "Tasked Company":
1. User Experience & UI Impact (Immediate & Widespread)
Field Name on Screens: Everywhere the "Tasked To" field appears (Create, Edit, View Issue screens, workflows), it will instantly display as "Tasked Company".
Impact: This will cause immediate confusion for users accustomed to seeing "Tasked To". They might struggle to find the field or understand its purpose initially.
Column View in Issue Navigator: If "Tasked To" was a configured column in the Issue Navigator, it will immediately show "Tasked Company" as the column header.
Kanban/Scrum Boards:
Quick Filters: Any quick filters on boards that use JQL referencing "Tasked To" will break.
Swimlanes/Columns: If "Tasked To" was used for swimlanes or board columns (e.g., "Swimlane by Tasked To Person A"), these configurations will break or become mislabeled.
User Confusion: Expect an influx of questions, support tickets, and potential frustration as users adapt or try to find "the old field."
Saved Filters: Every single saved filter, whether shared or private, that uses Tasked To in its JQL will immediately break.
Example:project = MyProject AND "Tasked To" is EMPTY will return an error. It needs to be updated to project = MyProject AND "Tasked Company" is EMPTY.
Dashboard Gadgets: All dashboard gadgets (e.g., Filter Results, Two Dimensional Filter, pie charts, text gadgets using JQL) that rely on these broken saved filters or directly embed JQL with "Tasked To" will stop working or display errors.
Quick Filters on Boards: As mentioned, these will break.
If you use JSM, any queues defined by JQL referencing "Tasked To" will break, meaning tickets might disappear from agent queues.
Tailored Workflows: Ensures that the resolution options are appropriate for the specific type of work being done.
Improved Reporting: Allows for more precise analysis of why certain issue types are closed.
User Experience: Guides users to select the correct reason based on the context of the issue.
3. Different Default Values
Scenario: You have a custom field called "SLA Tier" (e.g., Bronze, Silver, Gold).
Context 1 (for Project: "Premium Support"): Default value is "Gold".
Context 2 (for Project: "Standard Support"): Default value is "Silver".
Benefit:
Efficiency: Automatically sets the common value, saving agents time.
Consistency: Ensures that issues created in certain projects or of certain types automatically get the correct initial classification.
4. Field Visibility & Applicability Control
Scenario: You have a custom field called "Compliance Standard".
Context 1 (for Project: "Financial Regulatory"): This field is enabled and visible with relevant options.
Other Projects: The "Compliance Standard" field simply has no context defined for them, or it's specifically excluded from their screens.
Benefit:
Clean Screens: Only show fields that are truly relevant to a specific project or issue type, reducing screen clutter for users who don't need to see it.
Performance: Jira doesn't need to load or validate options for fields that aren't applicable, leading to slightly faster performance on issue screens.
5. Simplified Administration & Scalability
Scenario: Your Jira instance grows from 5 to 50 projects. Many projects need a "Team" field, but each team has a different set of actual teams.
Without Contexts: You'd create 50 "Team" fields. If you wanted to change the options for one project, you'd edit one field. If you wanted to add a new option across all relevant projects, you'd have to edit 50 fields.
With Contexts: You create one "Team" field. For each project, you create a context (or reuse one if applicable) with its specific team options. If a new team joins one specific project, you edit one context. If a global team (e.g., "DevOps Enablement") is added to all projects, you can add it to the "Global" context.
Benefit:
Centralized Management: Manage variations of the same conceptual field from a single administration point.
Reduced Overhead: Less clutter in the custom field list. Easier to find and manage fields.
Future-Proofing: Easily adapt to new project requirements without creating new fields.
Summary
In essence, custom field contexts are about segmenting the behavior of a single custom field based on its environment (project and issue type). This dramatically improves:
User Experience: By presenting only relevant options and values.
Data Quality: By enforcing appropriate selections.
Administrative Efficiency: By reducing the number of custom fields and simplifying their maintenance.
Jira Scalability: By allowing your instance to grow without becoming an unmanageable mess of redundant custom fields.
Review all defined contexts. This will clearly show you which projects and issue types are using this custom field.
If you're still unsure of its usage, you can also click the "Used By" link on the Custom Fields page (though "Contexts" is more definitive for showing the full scope).
Implement a Change Management Process:
For any significant changes to global elements like custom fields, require a formal change request.
The request should include an impact analysis, identifying all affected projects, teams, integrations, and reports.
Require stakeholder approval from all impacted parties before proceeding with the change.
Communicate Broadly:
If a custom field name must change, communicate the change well in advance to all affected project leads, team members, and stakeholders.
Provide the old name, the new name, the reason for the change, and the effective date.
Advise users to update their saved filters and dashboards.
Use Internal Field IDs for Scripts/APIs:
Whenever possible, when writing ScriptRunner scripts, Jira Automation rules (especially advanced ones using smart values for field IDs), or interacting with the Jira API, reference custom fields by their internal ID (e.g., cf[12345]) rather than their display name. The internal ID never changes, even if the display name is renamed.
cfValues['Custom Field Name'] in Groovy/ScriptRunner is convenient but brittle if the name changes. issue.getCustomFieldValue(customFieldManager.getCustomFieldObject(12345L)) is more robust.
Test in a Staging Environment:
For critical changes, always test the renaming in a staging or non-production Jira instance first. Verify that all expected (and unexpected) impacts are understood before applying to production.
By being diligent and following these practices, administrators can leverage the power of custom field contexts without introducing significant risks or disrupting other teams.
Jira Service Management Queues:
User JQL Habits: Users who manually type JQL will have to learn the new name, slowing down their ad-hoc searches.
3. Jira Automation Impact (High Risk of Workflow Disruption)
JQL in Automation: Any Automation rule that includes JQL referencing "Tasked To" (e.g., in a trigger, condition, or a lookup issues action) will fail to execute or return incorrect results.
Field References in Conditions/Actions:
Smart Values: Smart values like {{issue.Tasked To}} are usually more robust and might continue to work as they often resolve to the field ID. However, this is not guaranteed for all contexts and versions, so assume potential risk.
Direct Field Selection: If a rule uses a dropdown to select "Tasked To" for a condition (e.g., "Field value changed for Tasked To") or an action (e.g., "Set Tasked To to value X"), these might still work after the rename, but it's crucial to test. The underlying ID is still the same.
Text-Based References: If you have advanced conditions or actions that take the field name as a string input, they will break.
Overall Impact: Broken automation rules can lead to incorrect status transitions, missed notifications, data inconsistencies, and a breakdown of automated processes.
4. ScriptRunner/Groovy Scripts Impact (Certain Breakage for Name-Based Lookups)
This is a major area of impact and often the most overlooked.
customFieldManager.getCustomFieldObjectByName("Tasked To"): Any script using this method will break. It relies on the exact display name.
issue.get("customfield_12345") or issue.getCustomFieldValue(customFieldManager.getCustomFieldObject(12345L)): These methods rely on the internal ID (cf[xxxxx]), which does not change. So, scripts using this more robust approach will continue to function correctly.
cfValues['Tasked To'] (ScriptRunner inline scripts): This common shortcut relies on the display name and will break.
Post-functions not executing (e.g., not updating fields, sending emails).
Listeners not triggering (missing events).
Script fragments on screens not displaying or functioning correctly.
Jira becoming unusable in certain scenarios.
You will need to identify and update every single ScriptRunner script that references "Tasked To" by its name. This can be a tedious and error-prone process.
5. BI and Reporting Tool Impact (Likely Disruption)
eazyBI, Tableau, Power BI, etc.:
If these tools pull data using JQL queries that reference "Tasked To," those queries will break.
If they connect directly to Jira's API and use the display name in their API calls, those calls will fail.
Even if they use the field ID, the column header or dimension name in the BI tool's data model or reports might still be based on the Jira display name, requiring updates to the reports themselves to reflect "Tasked Company."
Calculated members or metrics within eazyBI or similar tools that explicitly use the field name will need review and potential adjustment.
Impact: Dashboards and reports used for decision-making will be inaccurate or entirely broken, impacting business intelligence.
6. Integrations Impact (Varies, but High Potential for Breakage)
Any third-party integrations, custom webhooks, or external systems (CRM, HR systems, Slack, Teams integrations, etc.) that:
Send data to Jira and specify the field by name.
Retrieve data from Jira and expect the field name "Tasked To" in the payload.
Are triggered by changes to "Tasked To."
Will likely break. They will need to be updated to recognize "Tasked Company."
7. Documentation & Training Impact (Administrative Burden)
All internal documentation, Confluence pages, training materials, and onboarding guides that refer to "Tasked To" will be outdated and cause confusion. You'll need a significant effort to update them.
Mitigation Strategy - Before You Rename:
Given the high-impact nature, do not rename this field lightly.
Audit All Usage:
JQL: Search for field in (Tasked To) in Jira to find affected filters.
Automation: Manually review every automation rule in every project that could potentially reference this field (look for JQL, smart values, and direct field selections).
ScriptRunner: Use ScriptRunner's built-in "Script Fragments" or "Listeners" admin pages, or search your ScriptRunner script files for "Tasked To", getCustomFieldObjectByName, cfValues['Tasked To'].
BI Tools: Consult with owners of BI reports/dashboards.
Integrations: Consult with owners of integrations.
Screens/Workflows: Review all associated screen schemes and workflow post-functions/validators/conditions.
Communicate Broadly:
Notify all stakeholders well in advance: Project leads, team members, power users, integration owners, reporting users.
Explain the change, its reason, and the impact.
Provide the old name and the new name.
Give a specific date/time for the change.
Instruct users to update their saved filters and dashboards.
Schedule Downtime/Maintenance Window: Consider if a brief maintenance window is feasible to minimize disruption and allow for immediate fixes.
Update Dependencies (Pre/Post-Rename):
Shared Filters/Dashboards: As the Jira admin, update all shared JQL filters and dashboard gadgets yourself immediately after the rename.
Automation Rules: Update automation rules that rely on JQL or explicit field names.
ScriptRunner Scripts: Update all identified ScriptRunner scripts. This is often the most time-consuming part.
Integrations: Work with integration owners to update their configurations.
Provide Support: Be prepared for a surge in support requests immediately after the change.
Test Thoroughly: If you have a staging environment, always test this type of change there first. Verify that all critical workflows, automations, and reports continue to function as expected.
Renaming a heavily used custom field is essentially a mini-project in itself, requiring careful planning, execution, and extensive communication.