Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Cannot transition an issue using Rest API

I am using an on premises edition of Jira server V8.15.0 and writing code in C#

The issue is already created so I used an API call to get the metadata and thus the id for the issue.

I then used: "/baseUrl/api/2/project/projectKey/statuses" to get all the statuses for the project and thus the status id corresponding to the status I want to transition the issue to.

I then created a response body:

"{\"transition\": {\"id\": \"" + statusId +"\"}}"

-or-

{"transition": {"id": "statusId"}}

I then POST the request to:

"/baseUrl/api/2/issue/issueId/transitions";

however this generates a 500 code "Internal Server Error"

Any  idea what I could be doing wrong?

 

Thanks,

 

Ken O'Brien

1 answer

Hi @Ken O_Brien 

Have you checked the application logs? atlassian-jira.log file will lead you to this problem as the devil is in the details.

I have checked the application log file (atlassian-jira.log, actually the server guy just sent me a copy of it) at about the time the internal error is generated.  I see nothing suspicious.  No mention of an error.  No mention of transition.  No mention of status.  However, whenever I try to perform a transition it throws it back at me with "Internal Server Error".  Maybe I just don't know what to look for.  It is possible to transition an issue on Jira server through the API correct?

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you