func (w *Worklog) Get(ctx context.Context, orgID *identity.ID,
	ident *apitypes.WorklogID) (*apitypes.WorklogItem, error) {

	items, err := w.List(ctx, orgID)
	if err != nil {
		return nil, err
	}

	for _, item := range items {
		if *item.ID == *ident {
			return &item, nil
		}
	}

	return nil, nil
}
// Get returns a single worklog item for the given org with the given ident.
Get returns a single worklog item for the given org with the given ident.
// Get returns a single worklog item for the given org with the given ident .
func (w *Worklog) Get(ctx context.Context, orgID *identity.ID,
	ident *apitypes.WorklogID) (*apitypes.WorklogItem, error) {
	items, err := w.List(ctx, orgID)
	if err != nil {
		return nil, err
	}
	for _, item := range items {
		if *item.ID == *ident {
			return &item, nil
		}
	}
	return nil, nil
}
func ( w * Worklog ) Get ( ctx context . Context , orgID * identity . ID , ident * apitypes . WorklogID ) ( * apitypes . WorklogItem , error ) { items , err := w . List ( ctx , orgID ) if err != nil { return nil , err } for _ , item := range items { if * item . ID == * ident { return & item , nil } } return nil , nil }
Get returns a single worklog item for the given org with the given ident.
Get returns a single worklog item for the given org with the given ident .