How to get the source and destination Statuses for a Workflow Transition

Hi,

I am trying to get source and destination statuses for all workflow transition. Using Jira server SDK, I am able to get the transitions in a workflow and then stuck to get each transition’s source and destination statuses. Please note I’ll not have any issueId to get the statuses.

Looking for some on this.

Thanks!
Kumar