Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

404 when accessing the form API endpoints

Joseph Ojo May 25, 2023

i am trying to get form details of a project/issue. i have tried what is written on the documentation page on how to get form details on a project/issue. i copied the python code and substituted the values.

 

This is the error reponse

{

"error": "Not Found",

"message": "No message available",

"path": "/jira/forms/cloud/xxx-xx-xx-xxx-xxxxx/project/xxxx/form",

"status": 404,

"timestamp": "2023-05-25T09:59:49.624619Z"

}

The doc page:

https://developer.atlassian.com/cloud/forms/rest/api-group-forms-on-project/

 

what am i doing wrong

3 answers

1 vote
Jan Verbeke May 30, 2023

Hi,

Having the same issue.
One extra remarks we could check ?

Jan

Joseph Ojo May 30, 2023

Hello @Jan Verbeke ,

It turned out that i got a couple of things wrong (Cloud Id and Form Id). The code Id, i saw when i visited admin.atla.... did not work and i feel the API docs should have explained how to get those credentials.

i went to the form page and click on "Export in XLSX" while having the developer console opened, that's how i got the Cloud Id (i look at the network tab, the requests the browser was making). After that, i realized after spending hours that each form has its own unique id.

 

After getting the issues, you will iterate and get the form index of each issue

 

get_form_index_url = f"https://api.atlassian.com/jira/forms/cloud/{cloudId}/issue/{issue_key}/form"
The 'id' key of the returned response is the formId, then you will hit this next url
f"https://api.atlassian.com/jira/forms/cloud/{cloudId}/issue/{issue_key}/form/{form_id}/format/answers"
This is the headers i used
headers = {
"Accept": "application/json",
"X-ExperimentalApi": "opt-in"
}
i can strip my python code  to remove things peculiar to me and share with you, if you would want that
Yahyaa Bham July 26, 2023

absolute legend. I needed to see this to find the cloud ID! 

Like Charlie King-Miller likes this
Charlie King-Miller
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!
January 24, 2025

Legend is right.  Why was this so hard to find?!

1 vote
Graham Twine
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.
May 25, 2023

Hello @Joseph Ojo 

 

From the documentation



https://api.atlassian.com/jira/forms/cloud/{cloudId}/project/{projectIdOrKey}/form

 

Three things to verify

1. Verify the {Cloud ID} is valid

2. Verify the {project key} is valid?

3. Has the account making the call got the Browse Projects Permission on {projectKey}

Joseph Ojo May 25, 2023

1) yes the project key is correct, i confirmed that by hitting this endpoint 

/rest/api/3/project/{projectIdorKey}.

2) The cloud id was gotten by visiting this url https://admin.atlassian.com/ and selecting the organization. ref (https://community.atlassian.com/t5/Jira-discussions/What-is-my-cloud-id/td-p/900091)

3) yes it does, it is the admin account and the project endpoint returned data

0 votes
Roman Pankovski July 24, 2024

Hi there!

I've got the same problem: 

{
"timestamp": "2024-07-24T08:27:31.314094535Z",
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/jira/forms/cloud/{correct cloud id}/issue/{accessible issue key or id}/form"
}

Any advices?

Suggest an answer

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

Atlassian Community Events