I am actually trying to update the status of the issue. And when it is already in one status like pass/fail we are unable to change it to another without making a change to no-run. We are using the API call to update status or transistion.
https://jiraurl/rest/api/3/issue/"+jiraId +"/transitions
with the body of the request as:
{ "transition": { "id": "21" }}
where id: 21 is for Pass,31 for Fail and so on. But no Id for No-run which is the initial status