The Traditional Connector Problem
Picture this scenario: You need to integrate two JSM Cloud instances. For each instance, you might need to call REST API endpoints from:
Using traditional specific connectors—like dedicated Jira Cloud connectors, JSM connectors, and Assets connectors—that's 3 connectors per instance. For a two-instance integration, you're looking at 6 separate connectors to configure, maintain, and pay for.
With ScriptRunner Connect pricing starting at specific tiers based on connector count, this adds up quickly—not just in licensing costs, but in configuration overhead and maintenance burden.
Enter the Generic Connector Solution
Here's where the Generic Connector changes the game. Instead of needing three separate product-specific connectors per instance, you can use just one Generic Connector per Atlassian instance. That brings your total from 6 connectors down to just 2 connectors.
How It Works
The Generic Connector is a flexible, all-purpose connector that can interact with any REST API endpoint. Combined with Atlassian's Managed API approach, it allows you to:
- Configure once per instance: Set up a single Generic Connector for each Atlassian Cloud instance you're integrating with
- Call multiple endpoints: Use that one connector to access Jira Cloud, JSM Cloud, and JSM Assets Cloud APIs as needed
- Authenticate efficiently: Leverage modern authentication methods through a unified approach
Leveraging the Managed API with Generic Connector
One of the most powerful aspects of the Generic Connector is its ability to work seamlessly with manually constructed Managed APIs. This gives you complete control over your API interactions while maintaining the simplicity of a single connector.
Here's a practical example of how you can construct the Managed API manually and use it with the Generic Connector:
import Generic from "./api/generic";
import { JiraCloudApi } from "@managed-api/jira-cloud-v3-sr-connect";
import { JiraServiceManagementCloudApi } from "@managed-api/jira-service-management-cloud-sr-connect";
import { JiraServiceManagementCloudAssetsApi } from "@managed-api/jira-service-management-cloud-assets-sr-connect"
export default async function(event: any, context: Context<EV>): Promise<void> {
// Construct Managed API manually by pulling `connectionId` from the Generic API Connection and then pass it into Managed API constructor
const JiraCloud = new JiraCloudApi(Generic.connectionId);
// Fetch the issue
const issue = await JiraCloud.Issue.getIssue({
issueIdOrKey: 'PROJ-1',
fields: ['summary']
});
// And then print out the summary
console.log(issue.fields.summary);
// Construct Jira Service Management Managed API from Generic API Connection
const JiraServiceManagementCloud = new JiraServiceManagementCloudApi(Generic.connectionId);
// Construct Jira Service Management Assets Managed API from Generic API Connection
const JiraServiceManagementAssetsCloud = new JiraServiceManagementAssetsCloudApi(Generic.connectionId);
}
This approach demonstrates the real power of the Generic Connector: you're using a single connector ID to access multiple Atlassian API endpoints, simply by constructing different URL paths. No need for separate Jira, JSM, and Assets connectors—everything flows through your unified Generic Connector.
The Service Account Advantage
Now, let's talk about authentication—because this is where things get even more interesting.
Traditionally, many integrations relied on API tokens tied to individual user accounts. But as Atlassian has moved toward service accounts, there are compelling reasons to modernize your approach:
Why Service Accounts Matter
Stability and continuity: Service accounts aren't tied to individual employees who might leave the organization or change roles. Your integrations won't break when someone departs.
Clearer audit trails: Actions performed by service accounts are clearly identified as system operations, not attributed to individual users who didn't actually perform them.
Better security posture: Service accounts can be provisioned with precise permissions needed for the integration—nothing more, nothing less.
Simplified compliance: When auditors ask "who has access?", service accounts provide clear, manageable answers.
The Challenge with Service Accounts
As the Ambientia article "Atlassian Service Accounts vs. API Tokens: Why the Switch is Harder Than You Think" points out, switching from API tokens to service accounts isn't always straightforward. Different Atlassian products handle authentication differently, and there are nuances around permissions, scoping, and implementation.
This is where the Generic Connector shines. It's designed with flexibility in mind, allowing you to work with modern authentication patterns including service accounts, while maintaining backward compatibility when needed.
Real-World Benefits: Time and Cost Savings
Let's quantify what this means for your organization:
Cost Reduction
- 67% fewer connectors: From 6 connectors to 2 in our example
- Lower licensing costs: ScriptRunner Connect pricing scales with connector count
- Reduced maintenance overhead: Fewer connectors mean fewer configurations to maintain and update
Time Savings
- Faster initial setup: Configure 2 connectors instead of 6
- Simpler troubleshooting: Centralized connection points make debugging easier
- Easier scaling: Adding new API endpoints doesn't require new connectors
Simplified Architecture
- Cleaner documentation: Fewer integration points to document
- Easier onboarding: New team members face a simpler architecture
- Better governance: Centralized connectors make access management clearer
Getting Started with Generic Connector
Ready to simplify your Atlassian integrations? Here's how to approach the transition:
- Audit your current connectors: Identify which specific connectors could be consolidated
- Plan your service account strategy: Determine authentication requirements for each instance
- Configure Generic Connectors: Set up one per Atlassian instance with appropriate authentication
- Leverage the Managed API: Build your integrations using the flexible Generic Connector approach
- Test thoroughly: Validate that all required API calls work through the consolidated connectors
The Bottom Line
Integration complexity shouldn't scale linearly with the number of API endpoints you need to access. With ScriptRunner's Generic Connector, you can build sophisticated multi-instance Atlassian integrations while keeping your architecture clean, your costs manageable, and your team's cognitive load reasonable.
By combining Generic Connectors with modern service account authentication, you're not just saving money—you're building more maintainable, secure, and future-proof integrations.
About the Author and Development Team
Rafael Pinto Sperafico, Senior Atlassian Consultant at Ambientia, brings extensive expertise in Atlassian Cloud platform architecture and enterprise integration patterns. Specializing in ScriptRunner Connect implementations, OAuth 2.0 integrations, and secure API design, Rafael has worked with organizations navigating complex multi-instance Atlassian environments and modern authentication architectures. His practical insights in this article come from hands-on experience architecting cost-effective integration solutions that leverage ScriptRunner's Generic Connector capabilities across diverse enterprise deployments.
As part of Ambientia's expert Atlassian Consultants Team, Rafael works alongside experienced professionals dedicated to helping organisations successfully optimize their Atlassian toolchains. The insights shared in this article reflect knowledge gained from integration optimization projects, where our team has identified opportunities to reduce connector sprawl, streamline authentication patterns, and improve both cost efficiency and maintainability.
Our team combines deep technical expertise in Atlassian REST APIs with extensive practical experience in ScriptRunner Connect, helping organisations move beyond fragmented connector architectures toward unified, maintainable integration patterns. We understand that integration optimization involves both technical implementation and strategic planning, requiring careful assessment, stakeholder alignment, and ongoing support.
Ready to optimize your Atlassian integrations? Whether you're implementing ScriptRunner Connect for the first time, migrating from multiple specific connectors to Generic Connectors, or planning a Service Account transition, Ambientia's Atlassian experts bring proven methodologies and real-world experience. We offer comprehensive integration assessments, hands-on implementation support, developer training programs, and ongoing consultancy to ensure your integration strategy achieves both cost efficiency and operational excellence. Our approaches minimize business disruption while maximizing the benefits of modern integration patterns.
Contact Ambientia today to discuss how our integration expertise can help you reduce costs, simplify architecture, and build more maintainable Atlassian integrations.
Subscribe to our content
Do you want our content in your email? Among other things, we offer information on service management and customer experience development
More related
Atlassian
Brewing the Perfect Glögi: ScriptRunner Connect's Holiday Integration Recipe
Learn how ScriptRunner Connect brews seamless JSM integrations with automated syncing, comments, and handovers—smooth as the perfect holiday glögi.
Read more
Published 15.12.2025 | Updated 15.12.2025
Atlassian
ScriptRunner Connect External Coding Series #1: Your IDE, Your Rules
Set up ScriptRunner Connect External Coding with your local IDE for accessible, professional Atlassian automation development.
Read more
Published 25.9.2025 | Updated 26.9.2025
