Reopen Form via API

Albert Ashkhatoyan December 5, 2024

HI I have Issues with Submitted form and need to reopen them wnat to use API request so I can do it a bulk.

curl --request PUT \ --url 'https://api.atlassian.com/jira/forms/cloud/{cloudId}/issue/{issueIdOrKey}/form/{formId}/action/reopen' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'

 

I have tried with lot of requests and different users with Org Admin permissions but still getting 


{
"errors": [
{
"status": 404,
"code": "NOT_FOUND",
"title": "Route not found",
"detail": ""
}
]
}

Whats weird that Manually I can reopen them and Submitting process works correctly vi API

curl --request PUT \ --url 'https://api.atlassian.com/jira/forms/cloud/{cloudId}/issue/{issueIdOrKey}/form/{formId}/action/submit' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'

1 answer

0 votes
Vijay Dadi
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 6, 2024

Hello,

For every status change, it has its own transition id which you can see it in the workflow. and This will be your request body.

 

API end-point

https://xxx.atlassian.net/rest/api/3/issue/<<issue-key>>/transitions

Request body:

{ "transition":

    { "id": 121

    }

}

121 is the re-open transition id for my incident.

Vijay

Albert Ashkhatoyan December 6, 2024

Hi Vijay
Thanks For Response

But I need to Reopen attached form for customer edits, not change issue status.

Suggest an answer

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

Atlassian Community Events