You can use 言われた、伝われた but passive will make it sound like this is not a pleasant announcement.
もう少しまじめに仕事をやれと会社で言われました。
I’ve been told at work to take my job more seriously. (passive implies unpleasantness)
If the information is neutral/positive, it might be better to just use 聞いた.
来週親戚が来ると妻から聞きました。
My wife told me that relatives are coming next week.