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