// resourceIssueLinkTypeCreate creates a new jira issue using the jira api
resourceIssueLinkTypeCreate creates a new jira issue using the jira api
// resourceIssueLinkTypeCreate creates a new jira issue using the jira api
func resourceIssueLinkTypeCreate(d *schema.ResourceData, m interface{}) error {
	config := m.(*Config)
	issueLinkType := new(jira.IssueLinkType)
	issueLinkType.Name = d.Get("name").(string)
	issueLinkType.Inward = d.Get("inward").(string)
	issueLinkType.Outward = d.Get("outward").(string)
	returnedIssueLinkType := new(jira.IssueLinkType)
	err := request(config.jiraClient, "POST", issueLinkTypeAPIEndpoint, issueLinkType, returnedIssueLinkType)
	if err != nil {
		return errors.Wrap(err, "Request failed")
	}
	d.SetId(returnedIssueLinkType.ID)
	return resourceIssueLinkTypeRead(d, m)
}
func resourceIssueLinkTypeCreate ( d * schema . ResourceData , m interface { } ) error { config := m . ( * Config ) issueLinkType := new ( jira . IssueLinkType ) issueLinkType . Name = d . Get ( " " ) . ( string ) issueLinkType . Inward = d . Get ( " " ) . ( string ) issueLinkType . Outward = d . Get ( " " ) . ( string ) returnedIssueLinkType := new ( jira . IssueLinkType ) err := request ( config . jiraClient , " " , issueLinkTypeAPIEndpoint , issueLinkType , returnedIssueLinkType ) if err != nil { return errors . Wrap ( err , " " ) } d . SetId ( returnedIssueLinkType . ID ) return resourceIssueLinkTypeRead ( d , m ) }
resourceIssueLinkTypeCreate creates a new jira issue using the jira api
resourceIssueLinkTypeCreate creates a new jira issue using the jira api