// resourceUserRead reads issue details using jira api
resourceUserRead reads issue details using jira api
// resourceUserRead reads issue details using jira api
func resourceUserRead(d *schema.ResourceData, m interface{}) error {
	config := m.(*Config)
	user, _, err := getUserByKey(config.jiraClient, d.Id())
	if err != nil {
		return errors.Wrap(err, "getting jira user failed")
	}
	d.Set("name", user.Name)
	d.Set("display_name", user.DisplayName)
	d.Set("email", user.EmailAddress)
	return nil
}
func resourceUserRead ( d * schema . ResourceData , m interface { } ) error { config := m . ( * Config ) user , _ , err := getUserByKey ( config . jiraClient , d . Id ( ) ) if err != nil { return errors . Wrap ( err , " " ) } d . Set ( " " , user . Name ) d . Set ( " " , user . DisplayName ) d . Set ( " " , user . EmailAddress ) return nil }
resourceUserRead reads issue details using jira api
resourceUserRead reads issue details using jira api