JIRA GUIDE 01 Schema Hygiene & Performance
How to Deploy Jira Cloud Issue & Sub-task Templates Without Custom-Field Bloat
@forge/kvs and writes strictly to native Jira REST v3 fields.
1. Why Custom-Field-Based Template Apps Hurt Jira Scale
Every custom field added to a Jira Cloud instance expands the global field metadata catalog evaluated during JQL parsing, screen rendering, and webhook serialization. When an issue-template app relies on hidden custom fields (such as Template Selector or Template Sync ID) attached to default screens:
- Global Admin Bottlenecks: Adding a template to a new project requires modifying Field Configurations and Screen Schemes.
- Uninstallation Debris: Removing the app often leaves orphaned custom fields across hundreds of historical issues.
- Artificial Project Caps: Several legacy Marketplace tools cap starter tiers at 10 projects or require Global Admin tickets for simple wording updates.
2. Zero-Schema-Impact Storage with Sharded @forge/kvs
In Neatpane TemplateGuard — Issue Templates & JSM Responses, template definitions never touch Jira's Custom Fields API. Instead, each template is persisted as an isolated key inside Atlassian Forge Key-Value Storage (@forge/kvs), paired with byte-bounded index chunks so sites scale cleanly to 500+ templates well below Forge's 240 KiB per-key quota:
{
"itemKey": "tpl:item:tpl_onboarding_v3",
"indexChunkKey": "tpl:index:chunk:0",
"projectScopes": ["PEOPLE", "ITSM", "SEC"],
"customFieldsCreated": 0
}
3. Deterministic Epic → Sub-task Scaffolding via REST v3
When an engineer or PMO lead executes an Issue Hierarchy template, Neatpane interpolates context and {{var:...}} prompt tokens in memory, applies native Atlassian Document Format (ADF v3) to the parent issue, and dispatches child Sub-tasks atomically via Jira Cloud's native bulk creation endpoint (POST /rest/api/3/issue/bulk) under api.asUser():
Root Issue: [SEV-{{var:Severity|2}}] Incident Response — {{var:Incident Summary}}
Sub-task 1: Establish incident comms channel & assign IC ({{currentUser.displayName}})
Sub-task 2: Isolate affected service ({{var:Affected Service}}) & capture forensic logs
Sub-task 3: Draft JSM internal status update (INTERNAL_ONLY)
Sub-task 4: Publish 5-Whys postmortem within {{var:SLA Window|72 hours}}
4. Unlimited Project Scoping & Delegated Project-Lead Governance
| Governance Dimension | Legacy Custom-Field Template Apps | Neatpane TemplateGuard (Forge) |
|---|---|---|
| Custom Fields Created | 1–5+ Global Custom Fields | 0 Custom Fields |
| Project Scope Ceiling | Often capped at 10 projects on base tiers | Unlimited Projects |
| Template Edit Delegation | Often requires Global Jira Admin | Project Admins (ADMINISTER_PROJECTS) & Groups |
| External Data Egress | Vendor cloud databases | Zero Egress (Runs on Atlassian) |
Deploy Issue/Sub-task Hierarchies + JSM Canned Responses in one zero-egress Forge app ($0 for ≤10 users, $0.69/user/mo at 11–100 users).
Test Live Hierarchy Simulator Calculate Consolidation Savings