MCPcopy Create free account
hub / github.com/git-bug/git-bug / getTransitionTo

Function getTransitionTo

bridge/jira/client.go:1345–1354  ·  view source on GitHub ↗
(tlist *TransitionList, desiredStateNameOrID string)

Source from the content-addressed store, hash-verified

1343}
1344
1345func getTransitionTo(tlist *TransitionList, desiredStateNameOrID string) *Transition {
1346 for _, transition := range tlist.Transitions {
1347 if transition.To.ID == desiredStateNameOrID {
1348 return &transition
1349 } else if transition.To.Name == desiredStateNameOrID {
1350 return &transition
1351 }
1352 }
1353 return nil
1354}
1355
1356// DoTransition changes the "status" of an issue
1357func (client *Client) DoTransition(issueKeyOrID string, transitionID string) (time.Time, error) {

Callers 1

UpdateIssueStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected