// resourceRoleRead reads issue details using jira api
resourceRoleRead reads issue details using jira api
// resourceRoleRead reads issue details using jira api
func resourceRoleRead(d *schema.ResourceData, m interface{}) error {
	config := m.(*Config)
	urlStr := fmt.Sprintf("%s/%s", roleAPIEndpoint, d.Id())
	role := new(Role)
	err := request(config.jiraClient, "GET", urlStr, nil, role)
	if err != nil {
		return errors.Wrap(err, "Request failed")
	}
	setRoleResource(role, d)
	return nil
}
func resourceRoleRead ( d * schema . ResourceData , m interface { } ) error { config := m . ( * Config ) urlStr := fmt . Sprintf ( " " , roleAPIEndpoint , d . Id ( ) ) role := new ( Role ) err := request ( config . jiraClient , " " , urlStr , nil , role ) if err != nil { return errors . Wrap ( err , " " ) } setRoleResource ( role , d ) return nil }
resourceRoleRead reads issue details using jira api
resourceRoleRead reads issue details using jira api