Getting error while trying to resolving an issue programmatically

sonag February 12, 2025

Hi Team,

I am trying to change the issue status to resolved/done programmatically using the code, https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-issueidorkey-transitions-post
But I am getting the error, 

"Can't move (ticket). You might not have permission, or the issue is missing required information. If you keep having this problem, contact your Jira Administrator."
Could someone please help?

2 answers

0 votes
Calvin
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.
February 12, 2025

Hi @sonag ,

To do this transistion I'm guessing you have an API key created, the user that created that API key do they have permissions to transistion the issue?

Cheers.

0 votes
Tansu Akdeniz
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 12, 2025

Hi @sonag 

When you go to the issue in Jira, can you see the transition button? Are there any fields required? If yes, do you pass them in request body? Please also check that you use right transition id.

sonag February 12, 2025

Hi @Tansu Akdeniz , I am actually able to resolve the issue in UI, but not via programmatically. And I cross checked the transition id and it seems to be right. 

Tansu Akdeniz
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 12, 2025

Does the transition include any validators that are blocking the transition?

Can you double check the user that is used in API call? 

Can you perform another transition via rest api?

If possible, could you share the sample url, body format you use? 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events