Sentiment analysis tasks are formulated as determining whether a piece of text is positive, negative, or neutral, or determining from text the speaker's opinion and the target of the opinion (the entity towards which opinion is expressed).
in stance detection, systems are to determine favorability towards a given (prechosen) target of interest.