// resourceIssueLinkRead reads issue details using jira api
resourceIssueLinkRead reads issue details using jira api
// resourceIssueLinkRead reads issue details using jira api
func resourceIssueLinkRead(d *schema.ResourceData, m interface{}) error {
	config := m.(*Config)
	urlStr := fmt.Sprintf("%s/%s", issueLinkAPIEndpoint, d.Id())
	issueLink := new(jira.IssueLink)
	err := request(config.jiraClient, "GET", urlStr, nil, issueLink)
	if err != nil {
		return errors.Wrap(err, "Request failed")
	}
	d.Set("inward_key", issueLink.InwardIssue.Key)
	d.Set("outward_key", issueLink.OutwardIssue.Key)
	d.Set("link_type", issueLink.Type.ID)
	return nil
}
func resourceIssueLinkRead ( d * schema . ResourceData , m interface { } ) error { config := m . ( * Config ) urlStr := fmt . Sprintf ( " " , issueLinkAPIEndpoint , d . Id ( ) ) issueLink := new ( jira . IssueLink ) err := request ( config . jiraClient , " " , urlStr , nil , issueLink ) if err != nil { return errors . Wrap ( err , " " ) } d . Set ( " " , issueLink . InwardIssue . Key ) d . Set ( " " , issueLink . OutwardIssue . Key ) d . Set ( " " , issueLink . Type . ID ) return nil }
resourceIssueLinkRead reads issue details using jira api
resourceIssueLinkRead reads issue details using jira api