Documentation
¶
Overview ¶
Package tasksave defines durable, resumable Jira task-save state.
Index ¶
Constants ¶
View Source
const ( // CurrentVersion is the journal schema version written by this release. CurrentVersion = 1 // RetryWindow is how long a partial save can be retried with its local image data. RetryWindow = 24 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Draft ¶
type Draft struct {
Summary string
Description jira.Description
StoryPoints *float64
WriteSummary bool
WriteDescription bool
}
Draft is the user's intended Jira task content.
type Journal ¶
type Journal struct {
Version int
ID string
Kind Kind
TempKey string
IssueKey string
Issue jira.Issue
Draft Draft
AssigneeID string
SprintID int
IssueCreated bool
AddedToSprint bool
ContentUpdated bool
CreatedAt time.Time
LastAcceptedAt time.Time
}
Journal records every Jira step accepted during one task save.
func (Journal) Expired ¶
Expired reports whether Jira accepted no progress recently enough for a direct retry.
func (Journal) Projection ¶
Projection returns the issue content the user intended, including partial saves.
Click to show internal directories.
Click to hide internal directories.