Forums

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

acli jira workitem transition: InvalidPayloadException

Shia Liu
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!
August 27, 2025

Our Jira allows two "Closed" statuses: "Accept" and "Cancel issue". But acli doesn't seem to have a flag that can specify which.

If I run "acli jira workitem transition --key $WORK_ITEM_KEY --status Closed", I get "Failure: $WORK_ITEM_KEY can't be transitioned: io.atlassian.micros.clibackend.exceptions.InvalidPayloadException: Please describe why do you want to Cancel this issue."

If I run "acli jira workitem transition --key $WORK_ITEM_KEY --status Accept" instead, I get "Failure: $WORK_ITEM_KEY can't be transitioned: No allowed transitions found for given status".

How can I proceed?

CleanShot 2025-08-27 at 11.13.29@2x.png

1 answer

0 votes
Marc - Devoteam
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.
August 27, 2025

Hi @Shia Liu 

Welcome to the community.

The following might work, but you need to try this.

  1. Identify the correct transition ID:  you can identify the unique ID of the transition you want to execute.
  2. Use the acli transition command.

    syntax to transition an issue: acli jira workitem transition --id <ISSUE_ID> --transition-id <TRANSITION_ID> [flags]

 

Shia Liu
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!
August 27, 2025

This didn't work.

$ acli jira workitem transition --key $WORK_ITEM_KEY --transition-id 11

Error: unknown flag: --transition-id
Shia Liu
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!
August 27, 2025

This page contains all supported flags and it doesn't have `--transition-id`: https://developer.atlassian.com/cloud/acli/reference/commands/jira-workitem-transition/

Suggest an answer

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

Atlassian Community Events