Built-In Script Fields
ScriptForge provides pre-built scripted field templates for common use cases. These are ready to use without writing any code — just select a template, configure it, and add it to your screens.
Available Built-In Fields
Sub-Task Count
Returns the number of sub-tasks on the current issue.
- Type: Number
- Use case: Track breakdown granularity, filter issues without sub-tasks
Sub-Task Progress
Returns the percentage of sub-tasks in "Done" status.
- Type: String
- Output: e.g., "75% (3/4)"
- Use case: At-a-glance progress for parent stories/epics
Days Since Created
Returns how many days since the issue was created.
- Type: Number
- Use case: Age tracking, SLA monitoring, stale issue detection
Days Until Due
Returns the number of days until the due date (negative if overdue).
- Type: Number
- Use case: Urgency sorting, SLA dashboards
Last Comment Date
Returns when the last comment was added.
- Type: String
- Output: Date string
- Use case: Identify stale issues with no recent activity
Linked Issues Count
Returns the total number of issue links.
- Type: Number
- Use case: Dependency tracking, complexity indicators
Has Attachments
Returns whether the issue has any attachments.
- Type: String
- Output: "Yes" or "No"
- Use case: Filter issues missing required documentation
Parent Key
Returns the parent issue key (for sub-tasks) or epic key.
- Type: String
- Output: e.g., "PROJ-100"
- Use case: Quick navigation, reporting
Using Built-In Fields
- Navigate to Apps → ScriptForge → Scripted Fields
- Click Create from Template
- Select a template from the list above
- Optionally customize the field name and description
- Save and add to your issue screens
When to Use Built-In vs Custom
| Situation | Choice |
|---|---|
| Need one of the calculations listed above | Use a built-in template |
| Need a custom calculation or business logic | Create a custom script field |
| Need to combine multiple data points | Create a custom script field |
| Want a quick setup with no scripting | Use a built-in template |