Forums

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

Jira transition not working only one specific transition

MAHAMMAD AZEEM September 2, 2025

Hi Jira Community,

I am trying perform jira issue status transition from Gitlab pipeline/job using rest api via curl command indicated below:

#FLIP JIRA STATUS
curl -k POST \
-H "Authorization: Basic $TOKEN" \
-H "Content-Type: application/json" \
"https://******team*******.atlassian.net/rest/api/3/issue/${ISSUE_KEY}/transitions" \
-d "
	{
		\"transition\": {
		\"id\": \"$TRN_ID\"
	}
}"

I am able to perform other transitions on the same Jira issue/ticket, infact i can even comment on the same jira issue before performing the above transition but specifically only this transition alone not working. There are no errors thrown from the pipeline logs as well. Also, i added 10 seconds delay/wait time before performing transition but still no luck.

Gitlab pipeline log:

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 239 0 200 100 39 435 84 --:--:-- --:--:-- --:--:-- 521

There are not workflow rules/properties configured its a plane transition.

when i run this script manually from my local machine, i get below error:

{"errorMessages":["Issue does not exist or you do not have permission to see it."],"errors":{}}

My user id having token already has admin access.

Not sure what is blocking this transition. Please assist if i am missing anything.

 

Regards,

Azeem

 

3 answers

0 votes
MAHAMMAD AZEEM September 2, 2025

Hi All,
The above issue is resolved now.


Fix:
The token used for curl api was different in gitlab and when running locally.
Gitlab job was failing despite updating the correct curl api command because, i was retrying only the failed job in gitlab (requirement is not to create new pipeline) when i rerun a failed job in gitlab, it doesnt checkout the latest changes/commit, it was picking previous commit through which initially pipeline was triggered. Tested with new jira and new pipeline with latest changes. gitlab pipeline able to transition the issue status.

 

Thanks for the quick responses

 

 

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.
September 3, 2025

Hi @MAHAMMAD AZEEM 

Glad you solved it, so it was related to a permission issues based on a wrong user token.

0 votes
Dilip
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 2, 2025

Hi @MAHAMMAD AZEEM 

Please confirm how you have generated the transition id.
you can use the below to command to generate the transition id:
curl -u username:password \
-X GET \
-H "Content-Type: application/json" \
"https://your-jira-instance/rest/api/2/issue/ISSUE-KEY/transitions"

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.
September 2, 2025

HI @Dilip 

Why are you providing information based on the DC api?

The cloud API doesn't allow authentication by username/password, only API token, also for the API version 2

MAHAMMAD AZEEM September 2, 2025

yes I am using API version 3 and Jira could

also, the transition id looks ok

(verified from rest API as well as from url context path when clicked on transition in workflow )

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.
September 2, 2025

Hi @MAHAMMAD AZEEM 

Check for any conditions or validators that might are present on the specific transition in the workflow.

Or it could be that issue security has been setup on the project and the security level set on the issue prevents you from accessing it.

MAHAMMAD AZEEM September 2, 2025

Hi Marc,

This particular transition doesn't have rules or properties et

it's a plane transition.

 

Issue security meaning are you referring to permssion schemes ?

if yes then this project doesn't have any permissions associated.

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.
September 2, 2025

Hi @MAHAMMAD AZEEM 

Can you provide a screenshot of the issue (all details)

An provide details on the workflow transition you are trying to execute.

MAHAMMAD AZEEM September 2, 2025

Hi @Marc - Devoteam 

Here is the screenshots.

image (2).png

Screenshot 2025-09-03 095435.png

 

 

Below is the error i received when i ran the curl/rest api from cli/manually.

Screenshot 2025-09-03 095517.png

 

Regards,

Azeem

 

Suggest an answer

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

Atlassian Community Events