Documentation ¶
Index ¶
- type Client
- func (c *Client) KeyResultsByDate(ctx context.Context, startDate, deadline time.Time, expand []string) (Response, error)
- func (c *Client) KeyResultsByIDs(ctx context.Context, keyResultIDs, expand []string) (Response, error)
- func (c *Client) ObjectivesByDate(ctx context.Context, startDate, deadline time.Time, expand []string) (Response, error)
- func (c *Client) ObjectivesByIDs(ctx context.Context, objectiveIDs, expand []string) (Response, error)
- func (c *Client) UpdateKeyResult(ctx context.Context, keyResultID, status string, newValue float64, ...) (Update, error)
- func (c *Client) UpdateObjective(ctx context.Context, objectiveID, status, description string) (Update, error)
- type KeyResult
- type Label
- type OKR
- type Period
- type ProgressDefinition
- type Response
- type Team
- type Unit
- type Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a HTTP client to get data from the OKR for Jira app.
func NewClient ¶
NewClient creates a new OKR for Jira client. If a nil httpClient is provided, a new http.Client will be used.
func (*Client) KeyResultsByDate ¶
func (c *Client) KeyResultsByDate(ctx context.Context, startDate, deadline time.Time, expand []string) (Response, error)
KeyResultsByDate returns a list of key results which have start date or/and due date inside specified date range.
func (*Client) KeyResultsByIDs ¶
func (c *Client) KeyResultsByIDs(ctx context.Context, keyResultIDs, expand []string) (Response, error)
KeyResultsByIDs returns a list of key results with specified ids.
func (*Client) ObjectivesByDate ¶
func (c *Client) ObjectivesByDate(ctx context.Context, startDate, deadline time.Time, expand []string) (Response, error)
ObjectivesByDate returns a list of objectives which have start date or/and due date inside specified date range.
func (*Client) ObjectivesByIDs ¶
func (c *Client) ObjectivesByIDs(ctx context.Context, objectiveIDs, expand []string) (Response, error)
ObjectivesByIDs returns a list of objectives with specified ids.
type KeyResult ¶
type KeyResult struct { ID string `json:"id"` Key string `json:"key"` Name string `json:"name"` Link string `json:"link"` Description string `json:"description"` ParentObjectiveID string `json:"parentObjectiveId"` IssueIDs []string `json:"issueIds"` OwnerAccountID string `json:"ownerAccountId"` CollaboratorAccountIds []string `json:"collaboratorAccountIds"` PercentDone float64 `json:"percentDone"` Created time.Time `json:"created" time_format:"okr4j_format"` StartDate time.Time `json:"startDate" time_format:"okr4j_format"` Deadline time.Time `json:"deadline" time_format:"okr4j_format"` LabelIDs []string `json:"labelIds"` TeamIDs []string `json:"teamIds"` PeriodAliasID string `json:"periodAliasId"` LatestUpdate Update `json:"latestUpdate"` Unit Unit `json:"unit"` CurrentProgressDefinition ProgressDefinition `json:"currentProgressDefinition"` Weight float64 `json:"weight"` }
type OKR ¶
type OKR struct { ID string `json:"id"` Key string `json:"key"` Name string `json:"name"` Link string `json:"link"` Description string `json:"description"` ParentObjectiveID string `json:"parentObjectiveId"` OwnerAccountID string `json:"ownerAccountId"` CollaboratorAccountIDs []string `json:"collaboratorAccountIds"` PercentDone float64 `json:"percentDone"` Created time.Time `json:"created" time_format:"okr4j_format"` StartDate time.Time `json:"startDate" time_format:"okr4j_format"` Deadline time.Time `json:"deadline" time_format:"okr4j_format"` LabelIDs []string `json:"labelIds"` TeamIDs []string `json:"teamIds"` KRIDs []string `json:"krIds"` ChildObjectiveIDs []string `json:"childObjectiveIds"` LatestUpdate Update `json:"latestUpdate"` PeriodAliasID string `json:"periodAliasId"` Weight float64 `json:"weight"` }
type ProgressDefinition ¶
Click to show internal directories.
Click to hide internal directories.