Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to transition to a status not listed on transitions

patrick rice
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 18, 2018

I am attempting to transition an issue from one status to another.

When I call

jira.statuses()

I get a list of statuses that include the one I would like to transition to:

<JIRA Status: name=u'Scheduled', id=u'11301'>

When I ping https://our.server/rest/api/2/issue/issue_id/transitions I get the following response:

{
  "expand": "transitions",
  "transitions": [
    {
      "id": "51",
      "name": "Close Request",
      "to": {
        "self": "https://our.server/rest/api/2/status/6",
        "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.",
        "iconUrl": "https://our.server/images/icons/statuses/closed.png",
        "name": "Closed",
        "id": "6",
        "statusCategory": {
          "self": "https://our.server/rest/api/2/statuscategory/3",
          "id": 3,
          "key": "done",
          "colorName": "green",
          "name": "Done"
        }
      }
    }
  ]
}

 The issue here is that when I attempt to transition to the status to "Scheduled" or it's ID "11301" I get the following error:

response text = {"errorMessages":["Internal server error"],"errors":{}}

Do I need to to add this status to transitions? Or do I need to include more data with the transition? I'm not really sure how to diagnose this.

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 18, 2018

Yes, in order to change status, you have to use a transition.  The transition therefore must exist for you to trigger it!

So, you'll need to add a transition from the current issue status into the "Scheduled" status.

Suggest an answer

Log in or Sign up to answer