The question is, "Whose idea was it in the first place?"
If it's indirect speech, it's:
The question is whose idea it was in the first place.
As you can see, you only use a question mark in the first example, because the actual question is quoted. In the second you are simply making a statement "The question is..." so it should simply finish with a full stop.
Interested in Language