Issue methods: estimate, reopen, resolve
The Issue Verbs estimate, reopen, resolve as typed SDK methods, with inputs, result, refusals and an example.
Reference for Issue, one group of Issue methods.
Issue.estimate
Estimate records the effort an Issue needs, in days, so a week holds only what fits. Verb page.
interface IssueVerbs {
estimate(input: IssueEstimateInput, options?: SB.CallOptions): SB.Call<Issue>
}Emits Issue.estimated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
issue | Issue | required | The Issue to size. |
days | number | required | The effort in working days. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
issue | Issue | required | The estimated Issue. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
import { $ } from 'startup-builder'
const issue = await $.Issue.estimate({ issue: 'issue_vWekeqrXCN', days: 1 })Issue.reopen
Reopen returns a resolved Issue to its owning Role when the fix does not hold. Verb page.
interface IssueVerbs {
reopen(input: IssueReopenInput, options?: SB.CallOptions): SB.Call<Issue>
}Emits Issue.reopened.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
issue | Issue | required | The resolved Issue. |
reason | text | required | What still fails. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
issue | Issue | required | The reopened Issue. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
| The record is not in a state that allows this Verb, so the call is refused. | refused | Read the record, run the Verb that moves it to an allowed state, then retry. | None. |
Example
import { $ } from 'startup-builder'
const issue = await $.Issue.reopen({ issue: 'issue_vWekeqrXCN', reason: 'Example reason' })Issue.resolve
Resolve closes an Issue with its fix recorded and tells every Customer who reported it. Verb page.
interface IssueVerbs {
resolve(input: IssueResolveInput, options?: SB.CallOptions): SB.Call<Issue>
}Emits Issue.resolved.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
issue | Issue | required | The Issue to close. |
resolution | text | required | What fixed it. |
change | Change | The Change whose full rollout fixed the Issue; its Version is recorded as the resolution. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
issue | Issue | required | The resolved Issue. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
| The record is not in a state that allows this Verb, so the call is refused. | refused | Read the record, run the Verb that moves it to an allowed state, then retry. | None. |
Example
import { $ } from 'startup-builder'
const issue = await $.Issue.resolve({ issue: 'issue_vWekeqrXCN', resolution: 'Example resolution' })