To determine whether an issue in Jira Service Management (JSM) was created by a customer through the customer portal versus being created directly within the JSM project (e.g., by an agent or internal user), you can use a combination of built-in Jira features, fields, and configurations. This isn't always 100% foolproof, as agents can manually create issues that mimic portal submissions, but there are reliable indicators and methods to check.
I'll break this down step by step, including how to check manually, use queries, and automate detection. Note that JSM treats portal submissions as a specific type of issue creation, often tied to customer accounts.
1. Understand the Key Indicators
- Customer Portal Creation: Issues created via the portal are typically submitted by external customers using the public-facing portal interface. These issues are associated with a customer account and often use predefined request types.
- Internal Creation: Issues created directly in JSM (e.g., via the "Create" button in the Jira interface) are usually initiated by agents, admins, or internal users. These might not have customer-specific attributes.
- Common Signs:
- Reporter Field: Portal issues often have a customer (external user) as the reporter. Internal issues might have an agent or internal user as the reporter.
- Request Type: Portal issues are linked to a "Customer Request Type" (configured in JSM project settings).
- Other Metadata: Portal issues may trigger automations or SLAs automatically, and they could have specific labels or fields set by JSM rules.
2. Manual Checks in the Jira UI
You can inspect an individual issue to gather clues. Here's how:
-
Step 1: View the Issue Details
- Go to the issue in your JSM project.
- Look at the Reporter field (under the "People" section):
- If the reporter is a user from a customer organization (e.g., their account is tied to an external domain or customer portal access), it's likely a portal submission.
- You can hover over or click the reporter's name to see their user type (e.g., "Customer" vs. "Agent" or "Jira User").
- Check the Issue History (via the "Activity" tab):
- Look for the creation event. If it says something like "Issue created via Customer Portal" or shows a portal-specific action, that's a clear indicator.
- Portal-created issues often start with a comment or description entered by the customer.
-
Step 2: Check JSM-Specific Fields
- Customer Request Type: In the issue view, look for the "Customer Request Type" field (if configured). This is a custom field in JSM projects that typically appears for portal submissions.
- SLA and Queue Information: If the issue is in a service project queue, portal issues often have SLAs applied automatically. You can check the "SLAs" panel if your project has them enabled.
- Organization or Customer Field: JSM issues might have a "Organization" or "Customer" field populated for portal submissions.
-
Step 3: Review Project Settings
- Go to your JSM project settings > Request Types. Here, you can see which request types are available in the portal. If the issue's request type matches one of these, it's a strong hint it came from the portal.
Limitations: Manual checks work for one issue at a time and rely on how your project is configured. If an agent creates an issue and sets a customer as the reporter, it might look like a portal submission.
3. Use JQL (Jira Query Language) to Filter Issues
JQL is a powerful way to query issues in bulk. You can create filters to identify potential portal vs. internal issues.
Pros: JQL is fast for bulk analysis. Cons: It requires knowing your project's configuration (e.g., group names or custom fields). Not all portal issues will be caught if reporters aren't in a specific group.
4. Set Up Automation to Detect and Tag Issues
To make this easier long-term, you can use Jira Automation (built into JSM) to automatically label or add a custom field to issues based on their creation source. This way, you can easily filter or report on them later.
-
Step 1: Create an Automation Rule
- Go to Project Settings > Automations.
- Click Create Rule.
- Trigger: Choose "Issue Created".
- Condition: Add a condition to check the reporter:
- Use "Issue fields condition" and select "Reporter" is in a specific group (e.g., "Customers").
- Alternatively, check if the issue has a "Customer Request Type" field.
- Action: Add a label (e.g., "Portal-Submission") or set a custom field (e.g., a dropdown field called "Creation Source" with options like "Portal" or "Internal").
- Example: If the condition is met, add the action "Edit issue" and set a field.
Here's a simple rule example:
- Trigger: When an issue is created.
- Condition: If
reporter in membersOf("Customers").
- Action: Add label "Via-Portal".
-
Why This Works: Automation can run in real-time, so newly created issues get tagged immediately. You can then use JQL to query for these labels (e.g., labels = "Via-Portal").
Pros: Automates the process and makes it visible. Cons: Requires setup time and might need testing to ensure accuracy.
5. Advanced Options: Scripts, APIs, or Integrations
If the above methods aren't sufficient, you can use more advanced tools for deeper analysis:
-
ScriptRunner (Add-on): If your instance has ScriptRunner, you can write scripts to check issue properties during creation or in bulk. For example, a script could query the issue's creation event via the REST API and check for portal-specific metadata.
- Example: Use a ScriptRunner listener to detect if the issue was created via the portal endpoint.
-
Jira REST API: For programmatic access, query the API for issues and inspect fields like fields.reporter.accountType (which might indicate a customer account). This is useful for integrations with BI tools or custom dashboards.
-
BI Tools: If you're using tools like Tableau or Power BI, export issue data and filter based on reporter type or custom fields.
When to Use: These are best for large-scale analysis or if you need custom logic.
Caveats and Best Practices
- Accuracy Isn't Guaranteed: Agents can create issues on behalf of customers, making them look like portal submissions. Always cross-reference with context (e.g., issue description or attachments).
- Configuration Dependency: The exact methods depend on how your JSM project is set up (e.g., user groups, custom fields). If you're unsure, review your project settings or consult your Jira admin.
- Test Thoroughly: Before relying on any method, test with sample issues: Create one via the portal and one internally, then verify the indicators.
- Enhance Visibility: Consider training your team or adding documentation to your knowledge base on how to identify issue sources.
If you provide more details about your JSM project setup (e.g., custom fields or groups), I can refine this advice further!