func createParentChildWorkItemLinkType(name string, sourceTypeID, targetTypeID, categoryID, spaceID uuid.UUID) *app.CreateWorkItemLinkTypePayload {
	description := "Specify that one bug blocks another one."
	lt := link.WorkItemLinkType{
		Name:           name,
		Description:    &description,
		SourceTypeID:   sourceTypeID,
		TargetTypeID:   targetTypeID,
		Topology:       link.TopologyTree,
		ForwardName:    "parent of",
		ReverseName:    "child of",
		LinkCategoryID: categoryID,
		SpaceID:        spaceID,
	}
	reqLong := &goa.RequestData{
		Request: &http.Request{Host: "api.service.domain.org"},
	}
	payload := ConvertWorkItemLinkTypeFromModel(reqLong, lt)
	// The create payload is required during creation. Simply copy data over.
	return &app.CreateWorkItemLinkTypePayload{
		Data: payload.Data,
	}
}
// createParentChildWorkItemLinkType defines a work item link type
createParentChildWorkItemLinkType defines a work item link type
// createParentChildWorkItemLinkType defines a work item link type
func createParentChildWorkItemLinkType(name string, sourceTypeID, targetTypeID, categoryID, spaceID uuid.UUID) *app.CreateWorkItemLinkTypePayload {
	description := "Specify that one bug blocks another one."
	lt := link.WorkItemLinkType{
		Name:           name,
		Description:    &description,
		SourceTypeID:   sourceTypeID,
		TargetTypeID:   targetTypeID,
		Topology:       link.TopologyTree,
		ForwardName:    "parent of",
		ReverseName:    "child of",
		LinkCategoryID: categoryID,
		SpaceID:        spaceID,
	}
	reqLong := &goa.RequestData{
		Request: &http.Request{Host: "api.service.domain.org"},
	}
	payload := ConvertWorkItemLinkTypeFromModel(reqLong, lt)
	return &app.CreateWorkItemLinkTypePayload{
		Data: payload.Data,
	}
}
func createParentChildWorkItemLinkType ( name string , sourceTypeID , targetTypeID , categoryID , spaceID uuid . UUID ) * app . CreateWorkItemLinkTypePayload { description := " " lt := link . WorkItemLinkType { Name : name , Description : & description , SourceTypeID : sourceTypeID , TargetTypeID : targetTypeID , Topology : link . TopologyTree , ForwardName : " " , ReverseName : " " , LinkCategoryID : categoryID , SpaceID : spaceID , } reqLong := & goa . RequestData { Request : & http . Request { Host : " " } , } payload := ConvertWorkItemLinkTypeFromModel ( reqLong , lt ) return & app . CreateWorkItemLinkTypePayload { Data : payload . Data , } }
createParentChildWorkItemLinkType defines a work item link type
createParentChildWorkItemLinkType defines a work item link type
// The create payload is required during creation. Simply copy data over.