How do we transition an issue via API?

Trevan Householder_Isos-Tech-Consulting_
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 Leaders.
December 13, 2017

Anyone know which package/module needs to be set to DEBUG in order to get the debugging info for transitioning an issue through the API?

 

We are able to transition a specific issue via the GUI, but using the same account via API, we cannot transition the issue.  There is an error, but we don't see it and the error does not appear in the atlassian-jira.log.  

2 answers

1 accepted

0 votes
Answer accepted
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 14, 2017

You could try to enable the HTTP Access logging, but this tends to provide way more information than is usually helpful.   But I'm curious if there is perhaps something wrong with the REST request being made.

Since you know this users can perform this action in the web gui of Jira, that tends to indicate this isn't a permissions problem.  Could you share with us the syntax of your request?   I've seen lots of users that start trying to use REST API in Jira for the first time and tend to encounter REST problems in regards to omitting the section that creates the user session first.  The details of that can be slightly different depending on what authentication method you are using to make this rest call.

Is this user able to perform any other kinds of actions via REST?  Like an issue edit?

Regards,
Andy

Trevan Householder_Isos-Tech-Consulting_
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 Leaders.
December 18, 2017

Thanks Andrew. You're correct that this was related to the REST call and not to permissions, since the user could perform the function via the GUI.

Yes, the user could create issues but could not transition them.

The developer was able to get it sorted out.  I have requested the calls (before/after) and will load them after they are sent to me.

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 13, 2017

If you mean the REST API, then the response message should contain the reason.  What response are you getting?

Trevan Householder_Isos-Tech-Consulting_
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 Leaders.
December 18, 2017

Thank you, Nic. Looks like we got it figured out. I'll post the solution when I receive the bits.

Suggest an answer

Log in or Sign up to answer