// resourceIssueLinkTypeRead reads issue details using jira api
resourceIssueLinkTypeRead reads issue details using jira api
// resourceIssueLinkTypeRead reads issue details using jira api
func resourceIssueLinkTypeRead(d *schema.ResourceData, m interface{}) error {
	config := m.(*Config)
	urlStr := fmt.Sprintf("%s/%s", issueLinkTypeAPIEndpoint, d.Id())
	issueLinkType := new(jira.IssueLinkType)
	err := request(config.jiraClient, "GET", urlStr, nil, issueLinkType)
	if err != nil {
		return errors.Wrap(err, "Request failed")
	}
	d.Set("name", issueLinkType.Name)
	d.Set("inward", issueLinkType.Inward)
	d.Set("outward", issueLinkType.Outward)
	return nil
}
func resourceIssueLinkTypeRead ( d * schema . ResourceData , m interface { } ) error { config := m . ( * Config ) urlStr := fmt . Sprintf ( " " , issueLinkTypeAPIEndpoint , d . Id ( ) ) issueLinkType := new ( jira . IssueLinkType ) err := request ( config . jiraClient , " " , urlStr , nil , issueLinkType ) if err != nil { return errors . Wrap ( err , " " ) } d . Set ( " " , issueLinkType . Name ) d . Set ( " " , issueLinkType . Inward ) d . Set ( " " , issueLinkType . Outward ) return nil }
resourceIssueLinkTypeRead reads issue details using jira api
resourceIssueLinkTypeRead reads issue details using jira api